From f567d150caa51081eedde26a49d2f255c3bd6aa5 Mon Sep 17 00:00:00 2001 From: Ryan Blue Date: Tue, 19 Sep 2023 01:32:00 -0400 Subject: [PATCH] Prebuild wpimath to prevent oom --- .github/workflows/cmake.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index daad223485a..cbbc41bee8e 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -77,9 +77,12 @@ jobs: - name: configure run: cmake -S . -B build -G "Ninja" -DCMAKE_BUILD_TYPE=RelWithDebInfo -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 + - name: build wpimath + working-directory: build + run: cmake --build . --parallel 1 --target wpimath/all - name: build working-directory: build - run: cmake --build . --parallel 1 + run: cmake --build . --parallel $(nproc) - name: test working-directory: build