-
Notifications
You must be signed in to change notification settings - Fork 429
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
093979a
commit bfee9e3
Showing
14 changed files
with
184 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
name: CI | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
debug_enabled: | ||
type: boolean | ||
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' | ||
required: false | ||
default: false | ||
push: | ||
tags-ignore: | ||
- "*.*" | ||
|
@@ -78,30 +85,31 @@ jobs: | |
with: | ||
python-version: "3.x" | ||
|
||
- name: Install pip dependencies | ||
- name: Install test dependencies | ||
# TODO(jfarebro): There's a bug with Windows cmake and PEP517 builds via pip install. | ||
# As a temporary workaround installing cmake outside of the isolated env seems to work. | ||
run: | | ||
python -m pip install --user --upgrade -r tests/requirements.txt | ||
python -m pip install --user cmake | ||
- uses: microsoft/[email protected] | ||
if: runner.os == 'Windows' | ||
- uses: lukka/get-cmake@latest | ||
- uses: lukka/run-vcpkg@v10 | ||
with: | ||
vcpkgGitCommitId: "aebb363eaa0b658beb19cbefdd5aa2f9cbc14f1e" | ||
# There's a permissions issue with the cache | ||
# https://github.com/microsoft/vcpkg/issues/20121 | ||
doNotCache: true | ||
|
||
- name: Configure | ||
run: | | ||
cmake --version | ||
mkdir build && cd build | ||
cmake ../ -DSDL_SUPPORT=ON -DPython3_EXECUTABLE=$(which python) | ||
- name: Build | ||
working-directory: build | ||
run: cmake --build . --config Debug --parallel 2 | ||
run: python -m pip install --user --verbose . | ||
|
||
- name: Test | ||
working-directory: build | ||
run: ctest -C Debug --progress -VV | ||
run: python -m pytest | ||
|
||
# Enable tmate debugging of manually-triggered workflows if the input option was provided | ||
- name: Setup SSH debug session on failure | ||
uses: mxschmitt/action-tmate@v3 | ||
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled && failure() }} | ||
with: | ||
limit-access-to-actor: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.