Skip to content

Commit

Permalink
ci: only archive derived data logs if the build step fails (#3011)
Browse files Browse the repository at this point in the history
  • Loading branch information
armcknight committed May 9, 2023
1 parent 8a219cb commit f0737f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ jobs:

# We split building and running tests in two steps so we know how long running the tests takes.
- name: Build tests
id: build_tests
run: ./scripts/xcode-test.sh ${{matrix.platform}} ${{matrix.test-destination-os}} $GITHUB_REF_NAME ci build-for-testing

- name: Run tests
Expand All @@ -209,7 +210,7 @@ jobs:

- name: Archiving DerivedData Logs
uses: actions/upload-artifact@v3
if: failure()
if: steps.build_tests.outcome == 'failure'
with:
name: derived-data-${{matrix.platform}}-xcode-${{matrix.xcode}}-os-${{matrix.test-destination-os}}
path: |
Expand Down

0 comments on commit f0737f6

Please sign in to comment.