Skip to content

Commit

Permalink
ci: Do Windows build but do not run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zcbenz committed Feb 8, 2025
1 parent 50f093a commit 06c0ef9
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [linux, mac]
os: [linux, mac, win]
arch: [arm64, x64]
exclude:
- os: win
Expand Down Expand Up @@ -61,20 +61,11 @@ jobs:
if: matrix.os == 'win'
shell: cmd
run: |
pushd "C:\Program Files (x86)\Microsoft Visual Studio\Installer\"
for /f "delims=" %%x in ('.\vswhere.exe -latest -property InstallationPath') do set VSPATH=%%x
popd
call "%VSPATH%\VC\Auxiliary\Build\vcvarsall.bat" ${{ matrix.arch }}
yarn build -p ${{ steps.cpu-cores.outputs.count }} ^
-G Ninja ^
--CDCMAKE_C_COMPILER_LAUNCHER=ccache ^
--CDCMAKE_CXX_COMPILER_LAUNCHER=ccache ^
--CDCMAKE_BUILD_TYPE=Release ^
--CDCMAKE_C_COMPILER=cl ^
--CDCMAKE_CXX_COMPILER=cl
--CDCMAKE_BUILD_TYPE=Release
- name: Test
if: matrix.os != 'win'
run: yarn test

- name: Prepare .node file
Expand Down

0 comments on commit 06c0ef9

Please sign in to comment.