Add Windows workflow

This commit is contained in:
Christian Heitman 2026-04-11 14:22:51 -03:00
parent 0624866114
commit f70b6d6b96
No known key found for this signature in database
GPG key ID: 0417A8664956113B

40
.github/workflows/windows.yml vendored Normal file
View file

@ -0,0 +1,40 @@
name: Tests on Windows
on: [push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
steps:
- name: Checkout Triton repository
uses: actions/checkout@v6
- name: Install Triton dependencies
uses: ./.github/actions/install-triton-deps/windows
with:
python-version: ${{ matrix.python-version }}
- name: Compile Triton
run: |
mkdir build
cd build
cmake -DZ3_INTERFACE=ON `
-DZ3_INCLUDE_DIRS=${{ env.Z3_INCLUDE_DIRS }} `
-DZ3_LIBRARIES=${{ env.Z3_LIBRARIES }} `
-DCAPSTONE_INCLUDE_DIRS=${{ env.CAPSTONE_INCLUDE_DIRS }} `
-DCAPSTONE_LIBRARIES=${{ env.CAPSTONE_LIBRARIES }} `
-DBOOST_INTERFACE=OFF `
..
cmake --build . --config Release -j3
cmake --install . --config Release
shell: pwsh
- name: Run tests
run: |
Copy-Item "${{ env.Z3_BIN_DIR }}\libz3.dll" "build\src\libtriton\Release\"
Copy-Item "${{ env.CAPSTONE_BIN_DIR }}\capstone.dll" "build\src\libtriton\Release\"
ctest --test-dir build --output-on-failure -C Release
shell: pwsh