7
7
rust_toolchain : nightly-2024-01-18
8
8
9
9
jobs :
10
- build-doc :
11
- runs-on : ubuntu-latest
12
- steps :
13
- - uses : actions/checkout@v3
14
- - uses : actions-rs/toolchain@v1
15
- with :
16
- profile : minimal
17
- toolchain : ${{ env.rust_toolchain }}
18
- components : rust-src, llvm-tools-preview
19
- target : riscv64gc-unknown-none-elf
20
- - name : Build doc
21
- run : cd os && cargo doc --no-deps --verbose
22
- - name : Deploy to Github Pages
23
- uses : peaceiris/actions-gh-pages@v3
24
- with :
25
- github_token : ${{ secrets.GITHUB_TOKEN }}
26
- publish_dir : ./os/target/riscv64gc-unknown-none-elf/doc
27
- destination_dir : ${{ github.ref_name }}
28
-
29
10
run-tests :
30
11
runs-on : ubuntu-latest
31
12
steps :
@@ -44,25 +25,44 @@ jobs:
44
25
- name : Cache QEMU
45
26
uses : actions/cache@v3
46
27
with :
47
- path : qemu-7.0.0
48
- key : qemu-7.0.0 -x86_64-riscv64
28
+ path : qemu-8.2.1
29
+ key : qemu-8.2.1 -x86_64-riscv64
49
30
- name : Install QEMU
50
31
run : |
51
- sudo apt-get update
52
- sudo apt-get install ninja-build -y
53
- if [ ! -d qemu-7.0.0 ]; then
54
- wget https://download.qemu.org/qemu-7.0.0.tar.xz
55
- tar -xf qemu-7.0.0.tar.xz
56
- cd qemu-7.0.0
57
- ./configure --target-list=riscv64-softmmu
32
+ wget https://github.com/ninja-build/ninja/releases/download/v1.10.2/ninja-linux.zip
33
+ unzip ninja-linux.zip
34
+ sudo mv ninja /usr/local/bin/
35
+ ninja --version
36
+ if [ ! -d qemu-8.2.1 ]; then
37
+ wget https://download.qemu.org/qemu-8.2.1.tar.xz
38
+ tar -xf qemu-8.2.1.tar.xz
39
+ cd qemu-8.2.1
40
+ ./configure --target-list=riscv64-softmmu,x86_64-softmmu,loongarch64-softmmu,aarch64-softmmu
58
41
make -j
59
42
else
60
- cd qemu-7.0.0
43
+ cd qemu-8.2.1
61
44
fi
62
45
sudo make install
63
46
qemu-system-riscv64 --version
47
+ qemu-system-aarch64 --version
48
+ qemu-system-loongarch64 --version
49
+ qemu-system-x86_64 --version
64
50
65
- - name : Run usertests
51
+ - name : Run usertests in RISC-V
66
52
run : cd os && make run TEST=1
67
53
timeout-minutes : 10
68
54
55
+ - name : Run usertests in AArch64
56
+ run : cd os && make run TEST=1 ARCH=aarch64
57
+ timeout-minutes : 10
58
+
59
+ - name : Run usertests in x86_64
60
+ run : cd os && make run TEST=1 ARCH=x86_64
61
+ timeout-minutes : 10
62
+
63
+ # - name: Run usertests in LoongArch64
64
+ # run: |
65
+ # trap 'exit 0' SIGTERM
66
+ # cd os && make run TEST=1 ARCH=loongarch64
67
+ # timeout-minutes: 2
68
+
0 commit comments