-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
36 additions
and
39 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 |
---|---|---|
|
@@ -7,15 +7,19 @@ jobs: | |
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
matrix: | ||
rust-toolchain: [nightly, nightly-2024-01-19] | ||
env: | ||
RUSTUP_TOOLCHAIN: ${{ matrix.rust-toolchain }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions-rs/toolchain@v1 | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
profile: minimal | ||
toolchain: ${{ matrix.rust-toolchain }} | ||
components: rust-src, clippy, rustfmt | ||
targets: x86_64-unknown-none, riscv64gc-unknown-none-elf, aarch64-unknown-none-softfloat | ||
- name: Check rust version | ||
run: rustc --version --verbose | ||
- name: Clippy for the default target | ||
run: make clippy | ||
- name: Clippy for x86_64 | ||
|
@@ -35,18 +39,17 @@ jobs: | |
os: [ubuntu-latest] | ||
arch: [x86_64, riscv64, aarch64] | ||
rust-toolchain: [nightly, nightly-2024-01-19] | ||
env: | ||
RUSTUP_TOOLCHAIN: ${{ matrix.rust-toolchain }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions-rs/toolchain@v1 | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
profile: minimal | ||
toolchain: ${{ matrix.rust-toolchain }} | ||
components: rust-src | ||
- uses: actions-rs/[email protected] | ||
with: | ||
crate: cargo-binutils | ||
version: latest | ||
use-tool-cache: true | ||
components: rust-src, llvm-tools | ||
targets: x86_64-unknown-none, riscv64gc-unknown-none-elf, aarch64-unknown-none-softfloat | ||
- uses: Swatinem/rust-cache@v2 | ||
- run: cargo install cargo-binutils | ||
- name: Build helloworld | ||
run: make ARCH=${{ matrix.arch }} A=apps/helloworld | ||
- name: Build memtest | ||
|
@@ -103,18 +106,17 @@ jobs: | |
matrix: | ||
os: [ubuntu-latest] | ||
rust-toolchain: [nightly, nightly-2024-01-19] | ||
env: | ||
RUSTUP_TOOLCHAIN: ${{ matrix.rust-toolchain }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions-rs/toolchain@v1 | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
profile: minimal | ||
toolchain: ${{ matrix.rust-toolchain }} | ||
components: rust-src | ||
- uses: actions-rs/[email protected] | ||
with: | ||
crate: cargo-binutils | ||
version: latest | ||
use-tool-cache: true | ||
components: rust-src, llvm-tools | ||
targets: x86_64-unknown-none, riscv64gc-unknown-none-elf, aarch64-unknown-none-softfloat | ||
- uses: Swatinem/rust-cache@v2 | ||
- run: cargo install cargo-binutils | ||
- uses: ./.github/workflows/actions/setup-musl | ||
with: | ||
arch: x86_64 | ||
|
@@ -144,11 +146,12 @@ jobs: | |
os: [ubuntu-latest] | ||
arch: [x86_64] | ||
rust-toolchain: [nightly, nightly-2024-01-19] | ||
env: | ||
RUSTUP_TOOLCHAIN: ${{ matrix.rust-toolchain }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions-rs/toolchain@v1 | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
profile: minimal | ||
toolchain: ${{ matrix.rust-toolchain }} | ||
- name: Build helloworld | ||
run: cargo build -p arceos-helloworld | ||
|
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
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 |
---|---|---|
|
@@ -10,10 +10,9 @@ jobs: | |
unit-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions-rs/toolchain@v1 | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
profile: minimal | ||
toolchain: ${{ env.rust-toolchain }} | ||
components: rust-src | ||
- name: Run unit tests | ||
|
@@ -27,17 +26,13 @@ jobs: | |
os: [ubuntu-latest] | ||
arch: [x86_64, riscv64, aarch64] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions-rs/toolchain@v1 | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
profile: minimal | ||
toolchain: ${{ env.rust-toolchain }} | ||
components: rust-src | ||
- uses: actions-rs/[email protected] | ||
with: | ||
crate: cargo-binutils | ||
version: latest | ||
use-tool-cache: true | ||
- uses: Swatinem/rust-cache@v2 | ||
- run: cargo install cargo-binutils | ||
- uses: ./.github/workflows/actions/setup-qemu | ||
with: | ||
qemu-version: ${{ env.qemu-version }} | ||
|