We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0dc41d0 commit 213db90Copy full SHA for 213db90
.github/workflows/swift.yml
@@ -33,7 +33,14 @@ jobs:
33
os: [ubuntu-22.04]
34
swift-version: ["6.1"]
35
steps:
36
- - name: Setup Swift toolchain
+ - name: Setup Swift toolchain (action)
37
+ id: swift_setup_action
38
+ continue-on-error: true
39
+ uses: swift-actions/setup-swift@v3
40
+ with:
41
+ swift-version: ${{ matrix.swift-version }}
42
+ - name: Setup Swift toolchain (fallback)
43
+ if: ${{ steps.swift_setup_action.outcome != 'success' }}
44
run: |
45
curl -sL "https://download.swift.org/swift-${{ matrix.swift-version }}-release/ubuntu22.04/swift-${{ matrix.swift-version }}-RELEASE/swift-${{ matrix.swift-version }}-RELEASE-ubuntu22.04.tar.gz" -o swift-toolchain.tar.gz
46
tar xf swift-toolchain.tar.gz
0 commit comments