Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Jan 8, 2022
1 parent da96d3f commit 0042386
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,25 @@ jobs:
- name: Install Rust
run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
- run: rustup target add thumbv7m-none-eabi
- name: Install cargo-hack
uses: taiki-e/install-action@cargo-hack
- name: Install valgrind
run: |
sudo apt-get update
sudo apt-get install -y valgrind
- name: Run cargo check
run: cargo check --all --all-features --all-targets
sudo apt-get update -qq
# libc6-dbg is needed to run Valgrind
sudo apt-get install -y libc6-dbg
# Use snap to install the latest Valgrind
# https://snapcraft.io/install/valgrind/ubuntu
sudo snap install valgrind --classic
- run: cargo build --all --all-features --all-targets
if: startsWith(matrix.rust, 'nightly')
- name: Run cargo check (no_std)
run: cargo check --no-default-features --target thumbv7m-none-eabi
- run: cargo hack build --feature-powerset --no-dev-deps
- run: cargo hack build --feature-powerset --no-dev-deps --target thumbv7m-none-eabi --skip std,default
- run: cargo test
- name: Run cargo test (valgrind)
- name: Run cargo test (with valgrind)
run: cargo test -- --test-threads=1
env:
CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER: "valgrind --leak-check=full --error-exitcode=1"
CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER: valgrind --error-exitcode=1 --leak-check=full --show-leak-kinds=all

msrv:
runs-on: ubuntu-latest
Expand All @@ -59,10 +64,7 @@ jobs:
- uses: actions/checkout@v2
- name: Install Rust
run: rustup update stable
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features -- -W clippy::all
- run: cargo clippy --all-features

fmt:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 0042386

Please sign in to comment.