2023-12-17 20:47:05 +08:00
|
|
|
name: Rust
|
|
|
|
|
2024-02-16 19:22:06 +08:00
|
|
|
on: [ push, pull_request ]
|
2023-12-17 20:47:05 +08:00
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
2024-02-16 21:07:03 +08:00
|
|
|
CLICOLOR_FORCE: 1
|
2023-12-17 20:47:05 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-02-16 18:51:17 +08:00
|
|
|
- uses: actions/checkout@v3
|
2024-02-16 20:59:09 +08:00
|
|
|
|
|
|
|
- name: Install Qemu
|
|
|
|
uses: ConorMacBride/install-package@v1
|
|
|
|
with:
|
2024-02-16 21:07:03 +08:00
|
|
|
apt: qemu-system-misc
|
2024-02-16 20:59:09 +08:00
|
|
|
|
|
|
|
- name: Install Rust
|
|
|
|
uses: dtolnay/rust-toolchain@master
|
2024-02-16 18:51:17 +08:00
|
|
|
with:
|
|
|
|
toolchain: nightly
|
|
|
|
targets: riscv64imac-unknown-none-elf
|
|
|
|
components: clippy
|
2024-02-16 20:59:09 +08:00
|
|
|
|
|
|
|
- name: Install cargo-make
|
2024-02-16 21:07:03 +08:00
|
|
|
uses: davidB/rust-cargo-make@v1
|
2024-02-16 20:59:09 +08:00
|
|
|
|
|
|
|
- name: Run CI Flow
|
|
|
|
run: cargo make ci-flow
|