Skip to content

Commit 206c481

Browse files
update github ci
1 parent 38c4d0a commit 206c481

File tree

1 file changed

+12
-28
lines changed

1 file changed

+12
-28
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -9,39 +9,23 @@ on:
99
jobs:
1010
test:
1111
runs-on: ubuntu-latest
12+
container: docker.cnb.cool/learningos/tangram-crates
13+
1214
steps:
1315
- name: Checkout repository
1416
uses: actions/checkout@v4
1517

16-
- name: Install Rust toolchain
17-
uses: dtolnay/rust-toolchain@master
18-
with:
19-
toolchain: nightly-2025-12-12
20-
components: rust-src, clippy, rustfmt, llvm-tools
21-
targets: |
22-
riscv64gc-unknown-none-elf
23-
aarch64-unknown-none-softfloat
24-
x86_64-unknown-none
25-
loongarch64-unknown-none
26-
27-
- name: Cache cargo tools
28-
uses: actions/cache@v4
29-
with:
30-
path: ~/.cargo/bin
31-
key: ${{ runner.os }}-cargo-binutils
32-
restore-keys: |
33-
${{ runner.os }}-cargo-
34-
35-
- name: Install cargo-binutils
36-
run: cargo install cargo-binutils
37-
38-
- name: Install QEMU
18+
- name: Verify tools
3919
run: |
40-
sudo apt-get update
41-
sudo apt-get install -y qemu-system-riscv64 qemu-system-x86 qemu-system-arm qemu-system-misc
42-
43-
- name: Check rust version
44-
run: rustc --version --verbose
20+
echo "=== Checking Rust version ==="
21+
rustc --version --verbose
22+
echo ""
23+
echo "=== Checking QEMU version ==="
24+
qemu-system-riscv64 --version
25+
qemu-system-x86_64 --version
26+
qemu-system-aarch64 --version
27+
qemu-system-loongarch64 --version
28+
echo ""
4529
4630
- name: Run tests
4731
run: ./scripts/test.sh

0 commit comments

Comments
 (0)