Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Starry CI after updating rustc version #20

Merged
merged 5 commits into from
Jul 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
strategy:
fail-fast: false
matrix:
rust-toolchain: [nightly-2024-05-02]
rust-toolchain: [nightly, nightly-2024-05-02]
env:
RUSTUP_TOOLCHAIN: ${{ matrix.rust-toolchain }}
WORKING_DIRECTORY: ${{ needs.prepare_for_external_test.outputs.TopTestDirectory }}
Expand All @@ -63,6 +63,9 @@ jobs:
- name: Clone Top Repository
if: github.repository != 'Starry-OS/Starry'
run: git clone https://github.com/Starry-OS/Starry.git ${{ env.WORKING_DIRECTORY }} && cd ${{ env.WORKING_DIRECTORY }} && git checkout ${{ inputs.TopBranch }}
- name: Update Top Repository
working-directory: ${{ env.WORKING_DIRECTORY }}
run: make pre_update
- name: Check rust version
working-directory: ${{ env.WORKING_DIRECTORY }}
run: rustc --version --verbose
Expand Down Expand Up @@ -90,7 +93,7 @@ jobs:
matrix:
os: [ubuntu-latest]
arch: [x86_64, riscv64, aarch64]
rust-toolchain: [nightly-2024-05-02]
rust-toolchain: [nightly, nightly-2024-05-02]
env:
RUSTUP_TOOLCHAIN: ${{ matrix.rust-toolchain }}
WORKING_DIRECTORY: ${{ needs.prepare_for_external_test.outputs.TopTestDirectory }}
Expand Down Expand Up @@ -189,7 +192,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
rust-toolchain: [nightly-2024-05-02]
rust-toolchain: [nightly, nightly-2024-05-02]
env:
RUSTUP_TOOLCHAIN: ${{ matrix.rust-toolchain }}
WORKING_DIRECTORY: ${{ needs.prepare_for_external_test.outputs.TopTestDirectory }}
Expand Down Expand Up @@ -311,7 +314,7 @@ jobs:
matrix:
os: [ubuntu-latest]
arch: [x86_64, riscv64, aarch64]
rust-toolchain: [nightly-2024-05-02]
rust-toolchain: [nightly, nightly-2024-05-02]
env:
RUSTUP_TOOLCHAIN: ${{ matrix.rust-toolchain }}
WORKING_DIRECTORY: ${{ needs.prepare_for_external_test.outputs.TopTestDirectory }}
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ STRUCT ?= Unikernel
override FEATURES += fp_simd

# QEMU options
BLK ?= y
NET ?= y
BLK ?= n
NET ?= n
GRAPHIC ?= n
BUS ?= mmio
BUS ?= pci

DISK_IMG ?= disk.img
QEMU_LOG ?= n
Expand Down
4 changes: 2 additions & 2 deletions scripts/make/features.mk
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ else
$(error "LOG" must be one of "off", "error", "warn", "info", "debug", "trace")
endif

ifeq ($(BUS),pci)
ax_feat += bus-pci
ifeq ($(BUS),mmio)
ax_feat += bus-mmio
endif

ifeq ($(shell test $(SMP) -gt 1; echo $$?),0)
Expand Down
2 changes: 1 addition & 1 deletion scripts/test/app_test_for_monolithic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function test_one() {
local args=$1
local actual="$APP/actual.out"
# 默认要用批量测试模式
args="$args ARCH=$ARCH APP_FEATURES=batch ACCEL=n"
args="$args ARCH=$ARCH APP_FEATURES=batch ACCEL=n NET=y BLK=y"
rm -f "$actual"

MSG=
Expand Down
4 changes: 2 additions & 2 deletions tools/axlibc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ crate-type = ["lib", "staticlib"]
[features]
default = []

irq = ["axfeat/irq", "arch_boot/irq"]
irq = ["arceos_posix_api/irq", "arch_boot/irq"]

# Multicore
smp = ["arceos_posix_api/smp", "arch_boot/smp"]
Expand Down Expand Up @@ -61,4 +61,4 @@ axerrno = { git = "https://github.com/Starry-OS/axerrno.git" }
arch_boot = { git = "https://github.com/Starry-OS/arch_boot.git" }

[build-dependencies]
bindgen ={ version = "0.66" }
bindgen ={ version = "0.69" }
4 changes: 2 additions & 2 deletions tools/axlibc/src/setjmp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@ pub unsafe extern "C" fn longjmp(_buf: *mut ctypes::__jmp_buf_tag, _val: c_int)
core::arch::asm!(
"mov rax,rsi
test rax,rax
jnz 1f
jnz 2f
inc rax
1:
2:
mov rbx, [rdi]
mov rbp, [rdi + 8]
mov r12, [rdi + 16]
Expand Down
Loading