From 36090d885d14fc41d36bc1410cc93ac09e48a377 Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Fri, 7 Jul 2023 00:05:09 -0400 Subject: [PATCH] Upload framework build logs on failure in darwin-tests job. This way if building darwin-framework-tool fails we will know why. --- .github/workflows/darwin-tests.yaml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/darwin-tests.yaml b/.github/workflows/darwin-tests.yaml index 0920d90438c979..cedc306cbeaf45 100644 --- a/.github/workflows/darwin-tests.yaml +++ b/.github/workflows/darwin-tests.yaml @@ -60,7 +60,7 @@ jobs: uses: ./.github/actions/checkout-submodules-and-bootstrap with: platform: darwin - bootstrap-log-name: bootstrap-logs-darwin-${{ matrix.build_variant }}${{ matrix.chip_tool }} + bootstrap-log-name: bootstrap-logs-darwin-${{ matrix.build_variant }} - name: Run macOS Darwin Framework Tool Build Debug working-directory: src/darwin/Framework @@ -126,7 +126,7 @@ jobs: uses: actions/upload-artifact@v3 if: ${{ failure() && !env.ACT }} with: - name: crash-core-darwin-${{ matrix.build_variant }}${{ matrix.chip_tool }} + name: crash-core-darwin-${{ matrix.build_variant }} path: /cores/ # Cores are big; don't hold on to them too long. retention-days: 5 @@ -134,13 +134,19 @@ jobs: uses: actions/upload-artifact@v3 if: ${{ failure() && !env.ACT }} with: - name: crash-log-darwin-${{ matrix.build_variant }}${{ matrix.chip_tool }} + name: crash-log-darwin-${{ matrix.build_variant }} path: ~/Library/Logs/DiagnosticReports/ + - name: Uploading framework build log + uses: actions/upload-artifact@v3 + if: ${{ failure() && !env.ACT }} + with: + name: framework-build-log-darwin-${{ matrix.build_variant }} + path: out/darwin-x64-darwin-framework-tool-${{ matrix.build_variant }}/darwin_framework_build.log - name: Uploading objdir for debugging uses: actions/upload-artifact@v3 if: ${{ failure() && !env.ACT }} with: - name: crash-objdir-darwin-${{ matrix.build_variant }}${{ matrix.chip_tool }} + name: crash-objdir-darwin-${{ matrix.build_variant }} path: objdir-clone/ # objdirs are big; don't hold on to them too long. retention-days: 5