Skip to content

Commit 478da38

Browse files
authored
Run CI on Swift 6.1 in Linux too (#58)
* Run CI on Swift 6.1 in Linux too * Bump codecov
1 parent 70fca1d commit 478da38

File tree

1 file changed

+37
-5
lines changed

1 file changed

+37
-5
lines changed

.github/workflows/ci.yml

Lines changed: 37 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,10 @@ jobs:
6767
run: ./Scripts/prepare-coverage-reports.sh
6868
- name: Upload Coverage Reports
6969
if: success()
70-
uses: codecov/codecov-action@v4
70+
uses: codecov/codecov-action@v5
7171
with:
72-
token: ${{ secrets.CODECOV_TOKEN }}
72+
fail_ci_if_error: true
73+
verbose: true
7374
spm-16-swift:
7475
name: Swift Build Xcode 16
7576
runs-on: macos-15
@@ -86,8 +87,8 @@ jobs:
8687
run: sudo xcode-select --switch /Applications/Xcode_16.app/Contents/Developer
8788
- name: Build and Test Framework
8889
run: xcrun swift test -c release -Xswiftc -enable-testing
89-
linux:
90-
name: "Build and Test on Linux"
90+
linux-6-0:
91+
name: "Build and Test on Linux Swift 6.0"
9192
runs-on: ubuntu-24.04
9293
container: swift:6.0
9394
permissions:
@@ -100,9 +101,40 @@ jobs:
100101
- name: Prepare Coverage Reports
101102
run: |
102103
llvm-cov export -format="lcov" .build/x86_64-unknown-linux-gnu/release/swift-async-queuePackageTests.xctest -instr-profile .build/x86_64-unknown-linux-gnu/release/codecov/default.profdata > coverage.lcov
104+
- name: Install curl for Codecov
105+
run: |
106+
apt-get update
107+
apt-get install -y --no-install-recommends curl ca-certificates
103108
- name: Upload Coverage Reports
104109
if: success()
105-
uses: codecov/codecov-action@v4
110+
uses: codecov/codecov-action@v5
111+
with:
112+
fail_ci_if_error: true
113+
verbose: true
114+
linux-6-1:
115+
name: "Build and Test on Linux Swift 6.1"
116+
runs-on: ubuntu-24.04
117+
container: swift:6.1
118+
permissions:
119+
contents: read
120+
steps:
121+
- name: Checkout Repo
122+
uses: actions/checkout@v5
123+
- name: Build and Test Framework
124+
run: swift test -c release --enable-code-coverage -Xswiftc -enable-testing
125+
- name: Prepare Coverage Reports
126+
run: |
127+
llvm-cov export -format="lcov" .build/x86_64-unknown-linux-gnu/release/swift-async-queuePackageTests.xctest -instr-profile .build/x86_64-unknown-linux-gnu/release/codecov/default.profdata > coverage.lcov
128+
- name: Install curl for Codecov
129+
run: |
130+
apt-get update
131+
apt-get install -y --no-install-recommends curl ca-certificates
132+
- name: Upload Coverage Reports
133+
if: success()
134+
uses: codecov/codecov-action@v5
135+
with:
136+
fail_ci_if_error: true
137+
verbose: true
106138
readme-validation:
107139
name: Check Markdown links
108140
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)