From 39d6168b11daa05381648ab0374e3766f724d9a5 Mon Sep 17 00:00:00 2001 From: Steven Roberts Date: Tue, 14 Jan 2025 13:35:02 -0800 Subject: [PATCH] Enable logging artifacts --- .github/workflows/ubuntu-clang-latest.yml | 34 +++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/.github/workflows/ubuntu-clang-latest.yml b/.github/workflows/ubuntu-clang-latest.yml index 8171847cc2..2031797a42 100644 --- a/.github/workflows/ubuntu-clang-latest.yml +++ b/.github/workflows/ubuntu-clang-latest.yml @@ -57,6 +57,23 @@ jobs: --label-regex logging \ --verbose + - name: Archive build files from failed build + uses: actions/upload-artifact@v4 + if: failure() + with: + name: build_files + path: | + ${{ github.workspace }}/build + !${{ github.workspace }}/build/Testing/output + + - name: Archive output files from failed build + uses: actions/upload-artifact@v4 + if: failure() + with: + name: output_files + path: | + ${{ github.workspace }}/build/Testing/ + build_cycle_profiling: runs-on: ubuntu-latest @@ -82,3 +99,20 @@ jobs: - name: Build # Build your program with the given configuration run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} + + - name: Archive build files from failed build + uses: actions/upload-artifact@v4 + if: failure() + with: + name: build_files + path: | + ${{ github.workspace }}/build + !${{ github.workspace }}/build/Testing/output + + - name: Archive output files from failed build + uses: actions/upload-artifact@v4 + if: failure() + with: + name: output_files + path: | + ${{ github.workspace }}/build/Testing/