From f862335db39bcb305f587f8bd4909a8bb47bac09 Mon Sep 17 00:00:00 2001 From: Florian Reimold <11774314+FlorianReimold@users.noreply.github.com> Date: Tue, 23 Apr 2024 16:51:11 +0200 Subject: [PATCH] Fixes and speedups --- .github/workflows/build-ubuntu.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-ubuntu.yml b/.github/workflows/build-ubuntu.yml index 69566686ca..954d5aa987 100644 --- a/.github/workflows/build-ubuntu.yml +++ b/.github/workflows/build-ubuntu.yml @@ -62,15 +62,26 @@ jobs: tar zxf capnproto-c++-1.0.2.tar.gz cd capnproto-c++-1.0.2 ./configure - make -j + make -j$(nproc) check sudo make install - name: Checkout uses: actions/checkout@v4 with: - submodules: 'true' + submodules: 'false' fetch-depth: 0 + - name: Update Submodules (selected ones) + run: | + cd $GITHUB_WORKSPACE + git submodule init + git submodule deinit thirdparty/curl/curl + git submodule deinit thirdparty/hdf5/hdf5 + git submodule deinit thirdparty/libssh2/libssh2 + git submodule deinit thirdparty/protobuf/protobuf + git submodule deinit thirdparty/zlib/zlib + git submodule update + - name: Create venv for building docs shell: bash run: | @@ -132,7 +143,7 @@ jobs: shell: bash - name: Build Release - run: cmake --build . --config Release -- -k 0 + run: cmake --build . --parallel --config Release -- -k 0 working-directory: ${{ runner.workspace }}/_build - name: Run Tests @@ -141,7 +152,7 @@ jobs: - name: Read Project Version from CMakeCache run: | - cmake_project_version_string=$(cat "${{github.workspace}}/_build/CMakeCache.txt" | grep "^CMAKE_PROJECT_VERSION:") + cmake_project_version_string=$(cat "${{ runner.workspace }}/_build/CMakeCache.txt" | grep "^CMAKE_PROJECT_VERSION:") arr=(${cmake_project_version_string//=/ }) cmake_project_version=${arr[1]} echo "CMAKE_PROJECT_VERSION=$cmake_project_version" >> "$GITHUB_ENV"