Skip to content

Commit b0cb726

Browse files
committed
build samples on windows
1 parent bb0fa3b commit b0cb726

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/build.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ jobs:
7575
arch: x64
7676

7777
- name: Configure CMake
78-
# enkiTS is failing ASAN on windows
7978
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBOX2D_SAMPLES=OFF -DBOX2D_SANITIZE=ON -DBUILD_SHARED_LIBS=OFF
8079
# run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBOX2D_SAMPLES=OFF -DBUILD_SHARED_LIBS=OFF
8180

@@ -85,4 +84,22 @@ jobs:
8584
- name: Test
8685
working-directory: ${{github.workspace}}/build
8786
run: ./bin/${{env.BUILD_TYPE}}/test
87+
88+
samples-windows:
89+
name: windows
90+
runs-on: windows-latest
91+
steps:
92+
93+
- uses: actions/checkout@v4
94+
95+
- name: Setup MSVC dev command prompt
96+
uses: TheMrMilchmann/setup-msvc-dev@v3
97+
with:
98+
arch: x64
99+
100+
- name: Configure CMake
101+
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release -DBOX2D_SAMPLES=ON -DBUILD_SHARED_LIBS=OFF -DBOX2D_UNIT_TESTS=OFF
102+
103+
- name: Build
104+
run: cmake --build ${{github.workspace}}/build --config Release
88105

0 commit comments

Comments
 (0)