Skip to content

Commit

Permalink
ci: install cargo-hack,cargo-binstall,cargo-binutils
Browse files Browse the repository at this point in the history
  • Loading branch information
zjp-CN committed Jan 19, 2025
1 parent b056866 commit 2d5c43c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ jobs:
matrix:
rust-toolchain: [nightly]
targets: [riscv64gc-unknown-none-elf]
features: ["", "--all-features"] # default features or all features
steps:
- uses: actions/checkout@v4
- uses: taiki-e/install-action@v2
with:
tool: cargo-hack,cargo-binstall,cargo-binutils
- uses: dtolnay/rust-toolchain@nightly
with:
toolchain: ${{ matrix.rust-toolchain }}
Expand All @@ -23,8 +25,8 @@ jobs:
- name: Check code format
run: cargo fmt --all -- --check
- name: Clippy
run: cargo clippy --target ${{ matrix.targets }} ${{ matrix.features }} -- -D warnings
run: cargo hack clippy --target ${{ matrix.targets }} --each-feature
- name: Build
run: cargo build --target ${{ matrix.targets }} ${{ matrix.features }}
run: cargo hack build --target ${{ matrix.targets }} --each-feature
- name: Run Example
run: cd example && make all

0 comments on commit 2d5c43c

Please sign in to comment.