Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
crueter authored Nov 30, 2023
1 parent a91cb2a commit 6f1400c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,20 @@ jobs:
git apply ../.github/patches/No-Werror.patch
cd ..
- name: 'Build ntcore (Windows)'
- name: 'Configure ntcore CMake (Windows)'
run: |
cmake -S allwpilib -B win-nt-build -G "Ninja" -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache -DCMAKE_BUILD_TYPE=Release -DWITH_JAVA=OFF -DWITH_EXAMPLES=OFF -DUSE_SYSTEM_FMTLIB=ON -DUSE_SYSTEM_LIBUV=ON -DUSE_SYSTEM_EIGEN=ON -DWITH_CSCORE=OFF -DWITH_NTCORE=ON -DWITH_WPIMATH=OFF -DWITH_WPILIB=OFF -DWITH_TESTS=OFF -DWITH_GUI=OFF -DWITH_SIMULATION_MODULES=OFF -DCMAKE_TOOLCHAIN_FILE=${{ runner.workspace }}/allwpilib/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_INSTALL_OPTIONS=--clean-after-build -DVCPKG_TARGET_TRIPLET=x64-windows-release -DVCPKG_HOST_TRIPLET=x64-windows-release -DCMAKE_INSTALL_PREFIX=${{ env.INSTALL_DIR }}
env:
SCCACHE_GHA_ENABLED: "true"

- name: 'Build ntcore (Windows)'
run: |
cmake -B win-nt-build --build --parallel $(nproc)
env:
SCCACHE_GHA_ENABLED: "true"

- name: 'Install ntcore (Windows)'
run: |
cmake --install win-nt-build
env:
SCCACHE_GHA_ENABLED: "true"
Expand Down

0 comments on commit 6f1400c

Please sign in to comment.