From 105064496f24e20be6eb191170c2a454f8550e24 Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Wed, 7 Feb 2024 01:14:52 -0500 Subject: [PATCH] Upload .ips bits in Xcode derived data on failure in Darwin tests as an artifact. (#31964) If there are crashes in the test, the crash logs should be in there, and we can try to debug those. --- .github/workflows/darwin.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/darwin.yaml b/.github/workflows/darwin.yaml index 55526db1ccfc4b..2d7443f9e9758c 100644 --- a/.github/workflows/darwin.yaml +++ b/.github/workflows/darwin.yaml @@ -123,6 +123,13 @@ jobs: run: | xcodebuild -target "MatterTvCastingBridge" -sdk iphoneos working-directory: examples/tv-casting-app/darwin/MatterTvCastingBridge + - name: Uploading .ips files in Xcode derived data to debug the failure + uses: actions/upload-artifact@v4 + if: ${{ failure() && !env.ACT }} + with: + name: darwin-framework-derived-data + path: ~/Library/Developer/Xcode/DerivedData/**/*.ips + retention-days: 5 - name: Uploading log files uses: actions/upload-artifact@v4 if: ${{ failure() && !env.ACT }}