chore: add GitHub Actions

This commit is contained in:
Paul Pan 2023-12-17 20:47:05 +08:00 committed by GitHub
parent 552e6fcc0e
commit d472411f28

26
.github/workflows/rust.yml vendored Normal file
View File

@ -0,0 +1,26 @@
name: Rust
on:
push:
branches: [ "dev" ]
pull_request:
branches: [ "dev" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
targets: riscv64imac-unknown-none-elf
components: clippy
- name: Build
run: cargo build --verbose
- name: Clippy
run: cargo clippy