merge: Merge pull request #14 from arunaengine/feat/0.7_rework #63
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| name: coverage | |
| jobs: | |
| report: | |
| name: Report | |
| environment: coverage | |
| runs-on: ubuntu-latest | |
| env: | |
| CARGO_INCREMENTAL: "0" | |
| RUSTFLAGS: "-Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort" | |
| RUSTDOCFLAGS: "-Cpanic=abort" | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - id: setup | |
| name: Setup Toolchain | |
| uses: dtolnay/rust-toolchain@nightly | |
| with: | |
| toolchain: nightly | |
| components: llvm-tools-preview | |
| - id: cache | |
| name: Enable Workflow Cache | |
| uses: Swatinem/rust-cache@v2 | |
| - id: tools | |
| name: Install Tools | |
| uses: taiki-e/install-action@v2 | |
| with: | |
| tool: cargo-llvm-cov | |
| - id: coverage | |
| name: Generate Coverage Report | |
| run: | | |
| mkdir .coverage | |
| cargo llvm-cov --lcov --output-path=./.coverage/lcov.info | |
| - id: upload | |
| name: Upload Coverage Report | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| file: ./.coverage/lcov.info | |
| verbose: true | |
| fail_ci_if_error: true |