Skip to content

Commit

Permalink
Add 'continue-on-error' for nightly Swift versions in Ubuntu and wasm…
Browse files Browse the repository at this point in the history
… workflows
  • Loading branch information
Kyle-Ye committed Sep 17, 2024
1 parent fa5d40c commit f2f7b5f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
matrix:
# swift_version: ["5.10"]
container: ["swift:5.10-jammy", "swiftlang/swift:nightly-6.0-jammy"]
include:
- container: "swiftlang/swift:nightly-6.0-jammy"
continue-on-error: true
runs-on: ubuntu-22.04
env:
OPENSWIFTUI_WERROR: 1
Expand All @@ -37,14 +40,21 @@ jobs:
-instr-profile=.build-test-debug/debug/codecov/default.profdata \
.build-test-debug/debug/OpenSwiftUIPackageTests.xctest \
> coverage.txt
continue-on-error: ${{ matrix.continue-on-error }}
id: debug-test
- name: Building and running tests in release mode
run: |
swift test \
-c release \
--filter OpenSwiftUITests \
-Xswiftc -warnings-as-errors \
--build-path .build-test-release
continue-on-error: ${{ matrix.continue-on-error }}
id: release-test
if: steps.debug-test.outcome == 'success'
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
continue-on-error: true
if: steps.debug-test.outcome == 'success'
4 changes: 4 additions & 0 deletions .github/workflows/wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ jobs:
swift_version: ["5.10.0-RELEASE", "6.0-SNAPSHOT-2024-08-30-a"]
os: [ubuntu-22.04]
extra_params: [""]
include:
- swift_version: "6.0-SNAPSHOT-2024-08-30-a"
continue-on-error: true
runs-on: ${{ matrix.os }}
env:
OPENSWIFTUI_WERROR: 1
Expand All @@ -30,6 +33,7 @@ jobs:
- name: build
run: |
swift build --triple wasm32-unknown-wasi ${{ matrix.extra_params }}
continue-on-error: ${{ matrix.continue-on-error }}
# Blocked by upstream support for WASM. See https://github.com/apple/swift-testing/issues/228
# - name: test
# run: |
Expand Down

0 comments on commit f2f7b5f

Please sign in to comment.