Skip to content

Commit e8248fb

Browse files
committed
Upload coverage reports for test_macos job
1 parent 889f517 commit e8248fb

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/rust.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,31 @@ jobs:
113113
args: --all-features
114114
env:
115115
CARGO_TARGET_X86_64_APPLE_DARWIN_RUNNER: sudo
116+
117+
# Similar to the plain "coverage" job, this is a separate job since it requires nightly Rust.
118+
test_macos_coverage:
119+
runs-on: macos-latest
120+
steps:
121+
- uses: actions/checkout@v2
122+
- name: Install wireguard-go
123+
run: brew install wireguard-tools
124+
- name: Setup nightly Rust
125+
uses: actions-rs/toolchain@v1
126+
with:
127+
toolchain: nightly
128+
override: true
129+
- name: Run tests
130+
uses: actions-rs/cargo@v1
131+
with:
132+
command: test
133+
args: --all-features --no-fail-fast
134+
env:
135+
CARGO_TARGET_X86_64_APPLE_DARWIN_RUNNER: sudo
136+
CARGO_INCREMENTAL: '0'
137+
RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
138+
RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
139+
- id: coverage
140+
uses: actions-rs/[email protected]
141+
- uses: codecov/codecov-action@v1
142+
with:
143+
files: ${{ steps.coverage.outputs.report }}

0 commit comments

Comments
 (0)