diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 20d145c8cb5..c97e75f90d9 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -77,9 +77,17 @@ jobs: - name: configure run: cmake -S . -B build -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DWITH_JAVA=OFF -DWITH_EXAMPLES=ON -DUSE_SYSTEM_FMTLIB=ON -DUSE_SYSTEM_LIBUV=ON -DUSE_SYSTEM_EIGEN=ON -DCMAKE_TOOLCHAIN_FILE=${{ runner.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_INSTALL_OPTIONS=--clean-after-build -DVCPKG_TARGET_TRIPLET=x64-windows-release -DVCPKG_HOST_TRIPLET=x64-windows-release + # Build wpiutil at full speed, wpimath depends on wpiutil + - name: build wpiutil + working-directory: build + run: cmake --build . --parallel $(nproc) --target wpiutil/all + + # Build wpimath slow to prevent OOM - name: build wpimath working-directory: build run: cmake --build . --parallel 1 --target wpimath/all + + # Build everything else fast - name: build working-directory: build run: cmake --build . --parallel $(nproc)