44 windows_msvc_test :
55 name : Windows (MSVC) tests
66 runs-on : windows-latest
7+ env :
8+ VCPKG_ROOT : C:/vcpkg
79 steps :
810 - name : 💳 Checkout
911 uses : actions/checkout@v1
1214 - name : 💾 Cache dependencies
1315 uses : actions/cache@v4
1416 with :
15- path : C:\vcpkg\ installed
17+ path : ${{ env.VCPKG_ROOT }}/ installed
1618 key : ${{ runner.os }}-vcpkg
1719 - name : 🌳 Install dependencies
1820 run : >-
@@ -33,18 +35,28 @@ jobs:
3335 physfs
3436 zlib
3537 directxsdk
36- - name : ⚙️ Configure
37- shell : cmd
38- env :
39- VCPKG_ROOT : C:/vcpkg
38+ - name : ⚙️ Configure static build
4039 run : >-
4140 cmake -B build -S .
42- -DCMAKE_TOOLCHAIN_FILE=% VCPKG_ROOT% /scripts/buildsystems/vcpkg.cmake
41+ -DCMAKE_TOOLCHAIN_FILE="$env: VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake"
4342 -DWANT_DOCS=off
4443 -DSHARED=off
45- -DWANT_PYTHON_WRAPPER=1
46- - name : ⚒️ Build
44+ - name : ⚒️ Build static
4745 run : cmake --build build --config RelWithDebInfo
46+ - name : ⚙️ Configure shared Debug build
47+ run : >-
48+ cmake -B build_shared -S .
49+ -DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake"
50+ -DCMAKE_BUILD_TYPE="Debug;RelWithDebInfo"
51+ -DWANT_DOCS=off
52+ -DWANT_PYTHON_WRAPPER=on
53+ - name : ⚒️ Build shared
54+ run : cmake --build build_shared --config Debug
55+ - name : 🐍 Test Python wrapper
56+ run : |
57+ cp build_shared/python/allegro.py build_shared/lib/Debug/
58+ cd build_shared/lib/Debug
59+ python allegro.py
4860 windows_msys2_test :
4961 name : Windows (MSYS2) tests
5062 runs-on : windows-latest
@@ -76,10 +88,16 @@ jobs:
7688 mingw-w64-x86_64-libopenmpt
7789 - name : ⚙️ Configure
7890 shell : msys2 {0}
79- run : cmake -B build -S . -G Ninja
91+ run : cmake -B build -S . -G Ninja -DWANT_PYTHON_WRAPPER=on
8092 - name : ⚒️ Build
8193 shell : msys2 {0}
8294 run : cmake --build build
95+ - name : 🐍 Test Python wrapper
96+ shell : msys2 {0}
97+ run : |
98+ cp build/python/allegro.py build/lib/
99+ cd build/lib/
100+ python allegro.py
83101 osx_test :
84102 name : OSX tests
85103 runs-on : macos-14
0 commit comments