Skip to content

Commit

Permalink
ci: Bump actions artifacts from 3 to 4 (#3515)
Browse files Browse the repository at this point in the history
Bumps actions/download-artifact from 3 to 4 and actions/upload-artifact from 3 to 4.
  • Loading branch information
philipphofmann authored Jan 2, 2024
1 parent 3d3a411 commit ea2a263
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/benchmarking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
run: |
sentry-cli --auth-token ${{ secrets.SENTRY_AUTH_TOKEN }} upload-dif --org sentry-sdks --project sentry-cocoa DerivedData/Build/Products/Debug-iphoneos/iOS-Swift.app.dSYM
- name: Archiving DerivedData
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: DerivedData-Xcode
path: |
Expand All @@ -87,7 +87,7 @@ jobs:
suite: ['High-end device', 'Mid-range device', 'Low-end device']
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: DerivedData-Xcode
- run: npm install -g [email protected]
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,15 @@ jobs:
shell: sh

- name: Archiving XCFramework.zip
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ github.sha }}
if-no-files-found: error
path: |
${{ github.workspace }}/*.zip
- name: Archive build log if failed
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ failure() || cancelled() }}
with:
name: raw-build-output-build-xcframework
Expand All @@ -115,7 +115,7 @@ jobs:
needs: build-xcframework
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: ${{ github.sha }}
- run: ./scripts/ci-select-xcode.sh 15.0.1
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/saucelabs-UI-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
run: |
sentry-cli --auth-token ${{ secrets.SENTRY_AUTH_TOKEN }} upload-dif --org sentry-sdks --project sentry-cocoa DerivedData/Build/Products/Test-iphoneos/iOS-Swift.app.dSYM
- name: Archiving DerivedData
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: DerivedData-Xcode-${{matrix.xcode}}
path: |
Expand Down Expand Up @@ -115,7 +115,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: DerivedData-Xcode-${{ matrix.xcode }}

Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ jobs:
run: cp $(swift build --show-bin-path -c release)/Run test-server-exec

- name: Archiving DerivedData
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: test-server
path: |
./test-server/test-server-exec
- name: Archiving Raw Test Logs
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ failure() || cancelled() }}
with:
name: test-server-build-log-${{matrix.platform}}-xcode-${{matrix.xcode}}-os-${{matrix.test-destination-os}}
Expand Down Expand Up @@ -148,7 +148,7 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: test-server

Expand Down Expand Up @@ -200,23 +200,23 @@ jobs:
run: ./scripts/xcode-slowest-tests.sh

- name: Archiving DerivedData Logs
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: steps.build_tests.outcome == 'failure'
with:
name: derived-data-${{matrix.platform}}-xcode-${{matrix.xcode}}-os-${{matrix.test-destination-os}}
path: |
/Users/runner/Library/Developer/Xcode/DerivedData/**/Logs/**
- name: Archiving Raw Test Logs
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ failure() || cancelled() }}
with:
name: raw-test-output-${{matrix.platform}}-xcode-${{matrix.xcode}}-os-${{matrix.test-destination-os}}
path: |
raw-test-output.log
- name: Archiving Crash Logs
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ failure() || cancelled() }}
with:
name: crash-logs-${{matrix.platform}}-xcode-${{matrix.xcode}}-os-${{matrix.test-destination-os}}
Expand Down Expand Up @@ -263,7 +263,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: test-server

Expand All @@ -278,7 +278,7 @@ jobs:
run: ./scripts/tests-with-thread-sanitizer.sh

- name: Archiving Test Logs
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ failure() || cancelled() }}
with:
name: thread-sanitizer
Expand All @@ -301,7 +301,7 @@ jobs:
shell: sh

- name: Archiving Raw Test Logs
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ failure() || cancelled() }}
with:
name: raw-uitest-output-${{matrix.target}}
Expand Down Expand Up @@ -335,7 +335,7 @@ jobs:
shell: sh

- name: Archiving Raw Test Logs
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ failure() || cancelled() }}
with:
name: raw-swiftui-test-output-${{matrix.platform}}-xcode-${{matrix.xcode}}-os-${{matrix.test-destination-os}}
Expand All @@ -357,7 +357,7 @@ jobs:
shell: sh

- name: Archiving Raw Test Logs
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ failure() || cancelled() }}
with:
name: raw-uitest-output-asan
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/testflight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
bundle exec fastlane ios_swift_to_testflight
- name: Archiving
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: dSYMs
path: |
Expand Down

0 comments on commit ea2a263

Please sign in to comment.