mirror of
https://github.com/JonathanSalwan/Triton
synced 2026-08-17 10:23:04 -04:00
Add Windows workflow
This commit is contained in:
parent
0624866114
commit
f70b6d6b96
1 changed files with 40 additions and 0 deletions
40
.github/workflows/windows.yml
vendored
Normal file
40
.github/workflows/windows.yml
vendored
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue