Skip to content

Commit

Permalink
test(ci): add coverage, remove no-std
Browse files Browse the repository at this point in the history
  • Loading branch information
pedromfedricci committed Nov 4, 2024
1 parent 29c2d11 commit 54a1b65
Showing 1 changed file with 20 additions and 42 deletions.
62 changes: 20 additions & 42 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,28 +23,6 @@ jobs:
- name: Check format
run: cargo fmt -- --check

no-std:
name: No std
runs-on: ubuntu-latest
env:
NO_STD_TARGET: thumbv7m-none-eabi
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Rust stable
run: rustup toolchain install stable
- name: Add no_std target
run: rustup target add ${{ env.NO_STD_TARGET }}
- name: Install cargo-hack
uses: taiki-e/install-action@cargo-hack
- name: Build on no_std environment
run: >
cargo hack build
--target ${{ env.NO_STD_TARGET }}
--no-dev-deps
--feature-powerset
--skip yield,thread_local
msrv:
name: MSRV
runs-on: ubuntu-latest
Expand Down Expand Up @@ -120,26 +98,26 @@ jobs:
RUSTFLAGS: --cfg loom -D warnings -D clippy::pedantic -D clippy::nursery
run: cargo hack clippy --profile test --feature-powerset

# coverage:
# name: Coverage
# runs-on: ubuntu-latest
# container:
# image: xd009642/tarpaulin:latest
# options: --security-opt seccomp=unconfined
# steps:
# - name: Checkout repository
# uses: actions/checkout@v3
# - name: Generate coverage
# run: >
# cargo tarpaulin
# --verbose
# --engine llvm
# --all-features
# --out xml
# - name: Upload to Codecov
# uses: codecov/codecov-action@v3
# env:
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
coverage:
name: Coverage
runs-on: ubuntu-latest
container:
image: xd009642/tarpaulin:latest
options: --security-opt seccomp=unconfined
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Generate coverage
run: >
cargo tarpaulin
--verbose
--engine llvm
--all-features
--out xml
- name: Upload to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

miri:
name: Miri
Expand Down

0 comments on commit 54a1b65

Please sign in to comment.