Use Nix flake in CI #363
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Clippy | |
on: | |
pull_request: | |
push: | |
branches: | |
main | |
jobs: | |
clippy_riscv64: | |
runs-on: ubuntu-latest | |
env: | |
TARGET: riscv64gc-unknown-none-elf | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: cachix/install-nix-action@v27 | |
- name: Setup upterm session | |
uses: lhotari/action-upterm@v1 | |
- run: nix develop -c sh " | |
cd riscv64_qemuvirt && | |
cargo clippy --all-features --target ${{ env.TARGET }} | |
" | |
clippy_aarch64: | |
runs-on: ubuntu-latest | |
env: | |
TARGET: aarch64-unknown-none | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: cachix/install-nix-action@v27 | |
- run: nix develop -c sh " | |
cd riscv64_qemuvirt && | |
cargo clippy --all-features --target ${{ env.TARGET }} | |
" |