File tree Expand file tree Collapse file tree 4 files changed +19
-2
lines changed Expand file tree Collapse file tree 4 files changed +19
-2
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -9,4 +9,6 @@ test-code-job:
9
9
script :
10
10
- git clone https://github.com/LearningOS/rCore-Tutorial-Checker-2024S.git ci-user
11
11
- git clone https://github.com/LearningOS/rCore-Tutorial-Test-2024S.git ci-user/user
12
- - cd ci-user && make test CHAPTER=`echo $CI_COMMIT_REF_NAME | grep -oP 'ch\K[0-9]'` passwd=$BASE_TEST_TOKEN
12
+ - cp -r $HOME/os-vendor os/vendor
13
+ - cp -r $HOME/user-vendor ci-user/user/vendor
14
+ - cd ci-user && make test CHAPTER=`echo $CI_COMMIT_REF_NAME | grep -oP 'ch\K[0-9]'` passwd=$BASE_TEST_TOKEN OFFLINE=1
Original file line number Diff line number Diff line change @@ -73,5 +73,18 @@ RUN rustup --version && \
73
73
cargo --version && \
74
74
rustc --version
75
75
76
+ # 2.3 Env
77
+ RUN cargo install cargo-binutils; \
78
+ rustup target add riscv64gc-unknown-none-elf; \
79
+ rustup component add rust-src; \
80
+ rustup component add llvm-tools-preview; \
81
+ rustup component add rustfmt; \
82
+ rustup component add clippy;
83
+
84
+ # 3. Cargo vendor
85
+ WORKDIR ${HOME}
86
+ COPY os/vendor ./os-vendor
87
+ COPY user/vendor ./user-vendor
88
+
76
89
# Ready to go
77
90
WORKDIR ${HOME}
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ MODE := release
4
4
KERNEL_ELF := target/$(TARGET ) /$(MODE ) /os
5
5
KERNEL_BIN := $(KERNEL_ELF ) .bin
6
6
DISASM_TMP := target/$(TARGET ) /$(MODE ) /asm
7
+ OFFLINE :=
7
8
8
9
# BOARD
9
10
BOARD := qemu
@@ -32,10 +33,12 @@ DISASM ?= -x
32
33
build : env $(KERNEL_BIN )
33
34
34
35
env :
36
+ ifeq ($(OFFLINE ) ,)
35
37
(rustup target list | grep "riscv64gc-unknown-none-elf (installed)") || rustup target add $(TARGET)
36
38
cargo install cargo-binutils
37
39
rustup component add rust-src
38
40
rustup component add llvm-tools-preview
41
+ endif
39
42
40
43
$(KERNEL_BIN ) : kernel
41
44
@$(OBJCOPY ) $(KERNEL_ELF ) --strip-all -O binary $@
You can’t perform that action at this time.
0 commit comments