mirror of
https://github.com/panpaul/tiny_os
synced 2024-09-20 09:45:19 +08:00
chore: add GitHub Actions
This commit is contained in:
parent
552e6fcc0e
commit
d472411f28
26
.github/workflows/rust.yml
vendored
Normal file
26
.github/workflows/rust.yml
vendored
Normal 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
|
||||
|
Loading…
Reference in New Issue
Block a user