mirror of
https://github.com/iceHtwoO/novaOS.git
synced 2026-04-16 20:22:26 +00:00
48 lines
1.3 KiB
YAML
48 lines
1.3 KiB
YAML
name: Rust
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
branches: ["master"]
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install rustfmt for nightly
|
|
run: rustup component add --toolchain nightly-x86_64-unknown-linux-gnu rustfmt clippy
|
|
- name: Add AArch64 Target
|
|
run: rustup target add aarch64-unknown-none
|
|
- name: Run format check
|
|
run: cargo fmt --check
|
|
- name: Run lint
|
|
run: cargo clippy --target aarch64-unknown-none -- -D warnings
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install rustfmt for nightly
|
|
run: rustup component add --toolchain nightly-x86_64-unknown-linux-gnu rustfmt clippy
|
|
- name: Add AArch64 Target
|
|
run: rustup target add aarch64-unknown-none
|
|
- name: Build
|
|
run: cargo build --verbose --target aarch64-unknown-none
|
|
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install rustfmt for nightly
|
|
run: rustup component add --toolchain nightly-x86_64-unknown-linux-gnu rustfmt clippy
|
|
- name: Add AArch64 Target
|
|
run: rustup target add aarch64-unknown-none
|
|
- name: Heap Workspace Test
|
|
run: cargo test -p heap
|