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 67b8977 commit 8a161e4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,9 @@ jobs:
git apply ../.github/patches/No-Werror.patch
cd ..
- name: Configure CMake - Windows
- name: Build ntcore - Windows
run: |
cmake -S . -B winbuild \
cmake -S allwpilib -B win-nt-build \
-G "Ninja" \
-DCMAKE_C_COMPILER_LAUNCHER=sccache \
-DCMAKE_CXX_COMPILER_LAUNCHER=sccache \
Expand All @@ -206,6 +206,8 @@ jobs:
-DVCPKG_HOST_TRIPLET=x64-windows-release \
-DCMAKE_INSTALL_PREFIX=${{ env.INSTALL_DIR }} \
-DENABLE_LTO=ON
cmake -B win-nt-build --parallel $(nproc)
cmake --install win-nt-build --prefix install --component portable
env:
SCCACHE_GHA_ENABLED: "true"

Expand All @@ -217,5 +219,4 @@ jobs:

- name: Package (Windows)
run: |
cmake --install ${{ env.BUILD_DIR }}
cmake --install ${{ env.BUILD_DIR }} --prefix ${{ env.INSTALL_DIR }} --component portable
cmake --install winbuild --prefix install --component portable

0 comments on commit 8a161e4

Please sign in to comment.