Skip to content

Commit f2f7b5f

Browse files
committed
Add 'continue-on-error' for nightly Swift versions in Ubuntu and wasm workflows
1 parent fa5d40c commit f2f7b5f

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.github/workflows/ubuntu.yml

+10
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ jobs:
1414
matrix:
1515
# swift_version: ["5.10"]
1616
container: ["swift:5.10-jammy", "swiftlang/swift:nightly-6.0-jammy"]
17+
include:
18+
- container: "swiftlang/swift:nightly-6.0-jammy"
19+
continue-on-error: true
1720
runs-on: ubuntu-22.04
1821
env:
1922
OPENSWIFTUI_WERROR: 1
@@ -37,14 +40,21 @@ jobs:
3740
-instr-profile=.build-test-debug/debug/codecov/default.profdata \
3841
.build-test-debug/debug/OpenSwiftUIPackageTests.xctest \
3942
> coverage.txt
43+
continue-on-error: ${{ matrix.continue-on-error }}
44+
id: debug-test
4045
- name: Building and running tests in release mode
4146
run: |
4247
swift test \
4348
-c release \
4449
--filter OpenSwiftUITests \
4550
-Xswiftc -warnings-as-errors \
4651
--build-path .build-test-release
52+
continue-on-error: ${{ matrix.continue-on-error }}
53+
id: release-test
54+
if: steps.debug-test.outcome == 'success'
4755
- uses: codecov/codecov-action@v3
4856
with:
4957
token: ${{ secrets.CODECOV_TOKEN }}
5058
verbose: true
59+
continue-on-error: true
60+
if: steps.debug-test.outcome == 'success'

.github/workflows/wasm.yml

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ jobs:
1515
swift_version: ["5.10.0-RELEASE", "6.0-SNAPSHOT-2024-08-30-a"]
1616
os: [ubuntu-22.04]
1717
extra_params: [""]
18+
include:
19+
- swift_version: "6.0-SNAPSHOT-2024-08-30-a"
20+
continue-on-error: true
1821
runs-on: ${{ matrix.os }}
1922
env:
2023
OPENSWIFTUI_WERROR: 1
@@ -30,6 +33,7 @@ jobs:
3033
- name: build
3134
run: |
3235
swift build --triple wasm32-unknown-wasi ${{ matrix.extra_params }}
36+
continue-on-error: ${{ matrix.continue-on-error }}
3337
# Blocked by upstream support for WASM. See https://github.com/apple/swift-testing/issues/228
3438
# - name: test
3539
# run: |

0 commit comments

Comments
 (0)