diff --git a/.github/workflows/pr_build.yml b/.github/workflows/pr_build.yml index 41be831cb6..219daa0c4b 100644 --- a/.github/workflows/pr_build.yml +++ b/.github/workflows/pr_build.yml @@ -25,6 +25,8 @@ env: # WIN32 specific variables PreferredToolArchitecture: X64 + # Ensure XZ always runs with muticore support + XZ_OPT: -T0 jobs: build: @@ -140,6 +142,24 @@ jobs: working-directory: ${{runner.workspace}}/build shell: bash run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DVCPKG_BUILD_TYPE=release $CMAKE_EXTRA + - name: Compress cmake logs + if: always() + shell: bash + run: | + if [ "${{ matrix.os }}" == "macOS-latest" ]; then + TAR=gtar + else + TAR=tar + fi + + find "$HOME/vircadia-files/vcpkg" -name '*log' -type f -print0 | $TAR --null --force-local -T - -c --xz -v -f "${{ runner.workspace }}/cmake-logs-${{ matrix.os }}-${{ github.event.number }}.tar.xz" + - name: Archive cmake logs + if: always() + uses: actions/upload-artifact@v2 + with: + name: cmake-logs-${{ matrix.os }}-${{ github.event.number }}.tar.xz + path: ${{ runner.workspace }}/cmake-logs-${{ matrix.os }}-${{ github.event.number }}.tar.xz + if-no-files-found: error - name: Build Application if: matrix.build_type == 'full' || matrix.build_type == 'client' working-directory: ${{runner.workspace}}/build @@ -231,4 +251,4 @@ jobs: if [[ "${{ matrix.build_type }}" == "android" ]]; then cd $GITHUB_WORKSPACE/android fi - $PYTHON_EXEC "$GITHUB_WORKSPACE/tools/ci-scripts/upload_to_publish_server.py" \ No newline at end of file + $PYTHON_EXEC "$GITHUB_WORKSPACE/tools/ci-scripts/upload_to_publish_server.py"