Skip to content

Commit 6fbe868

Browse files
authored
Enhance workflow with SDL2 installation steps
1 parent 6dd6ecd commit 6fbe868

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/pip_install_on_python_prerelease.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,16 @@ jobs:
1111
os: [macos-latest, ubuntu-latest, windows-latest]
1212
runs-on: ${{ matrix.os }}
1313
steps:
14+
- if: runner.os == 'Linux'
15+
run: sudo apt-get update && sudo apt-get install libsdl2-dev
16+
- if: runner.os == 'macOS'
17+
run: brew install sdl2
18+
- if: runner.os == 'Windows'
19+
run: |
20+
curl -LO https://github.com/libsdl-org/SDL/releases/download/release-2.32.10/SDL2-devel-2.32.10-VC.zip
21+
unzip SDL2-devel-2.32.10-VC.zip -d $env:USERPROFILE\SDL2
22+
echo "SDL2_INCLUDE_DIR=$env:USERPROFILE\SDL2\SDL2-2.32.10\include" | Out-File -FilePath $env:GITHUB_ENV -Append
23+
echo "SDL2_LIB_DIR=$env:USERPROFILE\SDL2\SDL2-2.32.10\lib\x64" | Out-File -FilePath $env:GITHUB_ENV -Append
1424
- uses: actions/checkout@v5
1525
- uses: actions/setup-python@v6
1626
with:

0 commit comments

Comments
 (0)