Skip to content

Commit 0eb54a7

Browse files
committed
experiment :)
1 parent b0d7c7a commit 0eb54a7

File tree

1 file changed

+35
-29
lines changed

1 file changed

+35
-29
lines changed

.github/workflows/ci.yml

Lines changed: 35 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -115,36 +115,42 @@ jobs:
115115
rustup default nightly
116116
rustup component add llvm-tools-preview
117117
118-
- name: "`grcov` ~ install"
119-
run: cargo install grcov
118+
#- name: "`grcov` ~ install"
119+
#run: cargo install grcov
120+
121+
#- name: cargo test
122+
#run: |
123+
#cargo test --all --no-fail-fast ${{ matrix.cargo_flags }}
124+
#env:
125+
#CARGO_INCREMENTAL: "0"
126+
#RUSTFLAGS: "-Cinstrument-coverage -Zcoverage-options=branch -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort -Cdebug-assertions=off"
127+
#RUSTDOCFLAGS: "-Cinstrument-coverage -Zcoverage-options=branch -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort -Cdebug-assertions=off"
128+
#LLVM_PROFILE_FILE: ${{ vars.RUNNER_TEMP }}"/find-%p-%m.profraw"
129+
130+
#- name: Generate coverage data
131+
#id: grcov
132+
#run: |
133+
#grcov target/debug/ \
134+
# --binary-path=target/debug/ \
135+
# --branch \
136+
# --llvm \
137+
# --source-dir . \
138+
# --output-path lcov.info \
139+
# --ignore-not-existing \
140+
# --excl-line "#\\[derive\\(" \
141+
# --excl-br-line "#\\[derive\\(" \
142+
# --excl-start "#\\[cfg\\(test\\)\\]" \
143+
# --excl-br-start "#\\[cfg\\(test\\)\\]" \
144+
# --commit-sha ${{ github.sha }} \
145+
# --service-job-id ${{ github.job }} \
146+
# --service-name "GitHub Actions" \
147+
# --service-number ${{ github.run_id }}
148+
149+
- name: Install cargo-llvm-cov
150+
uses: taiki-e/install-action@cargo-llvm-cov
151+
- name: Generate code coverage
152+
run: cargo llvm-cov --all-features --lcov --output-path lcov.info
120153

121-
- name: cargo test
122-
run: |
123-
cargo test --all --no-fail-fast ${{ matrix.cargo_flags }}
124-
env:
125-
CARGO_INCREMENTAL: "0"
126-
RUSTFLAGS: "-Cinstrument-coverage -Zcoverage-options=branch -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort -Cdebug-assertions=off"
127-
RUSTDOCFLAGS: "-Cinstrument-coverage -Zcoverage-options=branch -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort -Cdebug-assertions=off"
128-
LLVM_PROFILE_FILE: ${{ vars.RUNNER_TEMP }}"/find-%p-%m.profraw"
129-
130-
- name: Generate coverage data
131-
id: grcov
132-
run: |
133-
grcov target/debug/ \
134-
--binary-path=target/debug/ \
135-
--branch \
136-
--llvm \
137-
--source-dir . \
138-
--output-path lcov.info \
139-
--ignore-not-existing \
140-
--excl-line "#\\[derive\\(" \
141-
--excl-br-line "#\\[derive\\(" \
142-
--excl-start "#\\[cfg\\(test\\)\\]" \
143-
--excl-br-start "#\\[cfg\\(test\\)\\]" \
144-
--commit-sha ${{ github.sha }} \
145-
--service-job-id ${{ github.job }} \
146-
--service-name "GitHub Actions" \
147-
--service-number ${{ github.run_id }}
148154
- name: Upload coverage as artifact
149155
uses: actions/upload-artifact@v4
150156
with:

0 commit comments

Comments
 (0)