Skip to content

Commit b144af8

Browse files
committed
ci: setup codecov
1 parent 3fd3804 commit b144af8

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/rust.yml

+11-3
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,21 @@ jobs:
1616

1717
steps:
1818
- uses: actions/checkout@v3
19-
- name: Build
20-
run: cargo build --verbose
21-
- name: Prepare
19+
- name: Download resources
2220
run: |
2321
wget -O GeoLite2-Country.mmdb https://git.io/GeoLite2-Country.mmdb
22+
- uses: actions-rs/toolchain@v1
23+
with:
24+
toolchain: nightly
25+
override: true
26+
- name: Build
27+
run: cargo build --verbose
2428
- name: Run tests
2529
run: cargo test --verbose
30+
env:
31+
CARGO_INCREMENTAL: '0'
32+
RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
33+
RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
2634
- name: rust-grcov
2735
uses: actions-rs/[email protected]
2836
- name: Upload coverage reports to Codecov

0 commit comments

Comments
 (0)