-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: create format, build and cargo test github actions
Actually, it’s an update to GitHub Action Signed-off-by: liyang <[email protected]>
- Loading branch information
1 parent
3af2d86
commit 52c4c55
Showing
2 changed files
with
49 additions
and
18 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: CI | ||
|
||
on: [push,pull_request] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
# By default, RUSTFLAGS with “-D warnings” turns “asm_const” warnings into errors. | ||
RUSTFLAGS: | ||
|
||
jobs: | ||
fmt: | ||
name: Rustfmt all packages | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
components: rustfmt | ||
- name: Rustfmt Check | ||
uses: actions-rust-lang/rustfmt@v1 | ||
|
||
build-allwinner-rt: | ||
name: Build allwinner-rt | ||
needs: fmt | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
TARGET: [riscv64imac-unknown-none-elf] | ||
TOOLCHAIN: [nightly] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
target: ${{ MATRIX.TARGET }} | ||
toolchain: ${{ MATRIX.TOOLCHAIN }} | ||
- name: Run build | ||
run: cargo build -p allwinner-rt --target ${{ MATRIX.TARGET }} | ||
|
||
test-allwinner-hal: | ||
name: Test allwinner-hal | ||
needs: fmt | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
toolchain: stable | ||
- name: Run tests | ||
run: cargo test |
This file was deleted.
Oops, something went wrong.