Skip to content

Commit

Permalink
Enhanced CI
Browse files Browse the repository at this point in the history
  • Loading branch information
onihilist authored Jul 18, 2024
1 parent f44daba commit dd6155d
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,28 +37,28 @@ jobs:
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose

lint-grcov:
lint-clippy:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- uses: actions-rs/cargo@v1
with:
command: test
args: --all-features --no-fail-fast
env:
CARGO_INCREMENTAL: '0'
RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
- uses: actions-rs/[email protected]
- uses: actions/upload-artifact@v4
- name: Checkout code
uses: actions/checkout@v3

- name: Install Rust and Clippy
run: |
rustup component add clippy
cargo clippy
- name: Run tests
run: cargo test

- name: Build release
run: cargo build --release

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: lint-grcov-report
name: report-lintcov
path: ./.github/workflows/artifacts/report-lintcov.txt
retention-days: 7

0 comments on commit dd6155d

Please sign in to comment.