-
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.
Fixed rust-toolchain, fix problems in CI (#138)
* feat: set specific rust-toolchain version, fix some clippy warning, update qemu version in ci * feat: add build-latest-nightly workflow * fix: rename build-latest-nightly action * feat: use matrix to set rust-toolchain * WIP: try to modify build_c.mk to fix c app compile error * fix: add enable-slirp in setup-qemu, problem exists in build_c.mk * :feat: update cache key in setup-qemu action * fix: qemu install bug by add libslirp-dev * fix: update qemu_build cache key * fix: update qemu_build cache key in qemu run * fix: use -a in app_test.sh line37 grep * feat: change memory layout of pthread_mutex_t in build.rs * feat: change memory layout of pthread_mutex_t in build.rs under no smp * feat: add #[cfg(feature = preempt)] in percpu_macros * fix: delete #[cfg(feature = preempt)] in percpu_macros * fix: delete async from build-dependencies * feat: update toolchain version, fix error in errno
- Loading branch information
Showing
14 changed files
with
28 additions
and
28 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
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 |
---|---|---|
|
@@ -2,20 +2,19 @@ name: Build CI | |
|
||
on: [push, pull_request] | ||
|
||
env: | ||
rust-toolchain: nightly | ||
|
||
jobs: | ||
clippy: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
rust-toolchain: [nightly, nightly-2024-01-19] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: ${{ env.rust-toolchain }} | ||
toolchain: ${{ matrix.rust-toolchain }} | ||
components: rust-src, clippy, rustfmt | ||
- name: Clippy for the default target | ||
run: make clippy | ||
|
@@ -35,12 +34,13 @@ jobs: | |
matrix: | ||
os: [ubuntu-latest] | ||
arch: [x86_64, riscv64, aarch64] | ||
rust-toolchain: [nightly, nightly-2024-01-19] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: ${{ env.rust-toolchain }} | ||
toolchain: ${{ matrix.rust-toolchain }} | ||
components: rust-src | ||
- uses: actions-rs/[email protected] | ||
with: | ||
|
@@ -102,12 +102,13 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
rust-toolchain: [nightly, nightly-2024-01-19] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: ${{ env.rust-toolchain }} | ||
toolchain: ${{ matrix.rust-toolchain }} | ||
components: rust-src | ||
- uses: actions-rs/[email protected] | ||
with: | ||
|
@@ -142,12 +143,13 @@ jobs: | |
matrix: | ||
os: [ubuntu-latest] | ||
arch: [x86_64] | ||
rust-toolchain: [nightly, nightly-2024-01-19] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: ${{ env.rust-toolchain }} | ||
toolchain: ${{ matrix.rust-toolchain }} | ||
- name: Build helloworld | ||
run: cargo build -p arceos-helloworld | ||
- name: Build memtest | ||
|
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
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
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
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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[toolchain] | ||
profile = "minimal" | ||
channel = "nightly" | ||
channel = "nightly-2024-01-19" | ||
components = ["rust-src", "llvm-tools-preview", "rustfmt", "clippy"] | ||
targets = ["x86_64-unknown-none", "riscv64gc-unknown-none-elf", "aarch64-unknown-none-softfloat"] |
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
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