Skip to content

Commit

Permalink
[π˜€π—½π—Ώ] initial version
Browse files Browse the repository at this point in the history
Created using spr 1.3.5
  • Loading branch information
sunshowers committed Feb 8, 2024
1 parent 77908b3 commit 0419734
Show file tree
Hide file tree
Showing 11 changed files with 2,325 additions and 77 deletions.
31 changes: 27 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Check for differences
run: git diff --exit-code

build:
build-and-test:
name: Build and test
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -51,8 +51,31 @@ jobs:
- uses: taiki-e/install-action@cargo-hack
- uses: taiki-e/install-action@nextest
- name: Build
run: cargo hack build --feature-powerset
run: ./scripts/commands.sh build
- name: Test
run: cargo hack nextest run --feature-powerset
run: ./scripts/commands.sh nextest
- name: Run extended tests (only on stable)
if: matrix.rust-version == 'stable'
run: ./scripts/commands.sh nextest-all-features
- name: Run doctests
run: cargo test --doc --all-features
if: matrix.rust-version == 'stable'
run: ./scripts/commands.sh doctest

no-std:
name: Build no_std for ${{ matrix.target }}
runs-on: ubuntu-latest
strategy:
matrix:
target:
- thumbv7m-none-eabi
rust-version: [stable]
fail-fast: false
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust-version }}
targets: ${{ matrix.target }}
- uses: Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43 # v2
- uses: taiki-e/install-action@cargo-hack
- run: ./scripts/commands.sh build-no-std --target ${{ matrix.target }}
6 changes: 2 additions & 4 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@ jobs:
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov

- name: Collect coverage data with nextest
run: cargo llvm-cov nextest --all-features --all-targets --lcov --output-path lcov.info
- name: Collect coverage data for doctests
run: cargo llvm-cov test --all-features --doc --lcov --output-path lcov-doctest.info
- name: Collect coverage data
run: ./scripts/commands.sh coverage
- name: Upload coverage data to codecov
uses: codecov/codecov-action@f30e4959ba63075080d4f7f90cacc18d9f3fafd7 # v4
with:
Expand Down
Loading

0 comments on commit 0419734

Please sign in to comment.