Skip to content

Commit

Permalink
ci: add example ci
Browse files Browse the repository at this point in the history
  • Loading branch information
yfblock committed May 3, 2024
1 parent 321d6b0 commit c1294be
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/example.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Run Example CI

on:
workflow_dispatch:
push:

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- name: Go to example dir
run: cd example
- name: Test riscv64
run: make ARCH=riscv64 run
- name: Test aarch64
run: make ARCH=aarch64 run
- name: Test x86_64
run: make ARCH=x86_64 run

6 changes: 6 additions & 0 deletions example/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,10 @@ QEMU_EXEC += -nographic -smp 1
run-inner: build
$(QEMU_EXEC)

test:
make ARCH=aarch64 run
make ARCH=riscv64 run
make ARCH=x86_64 run
# make ARCH=loongarch64 run

.PHONY: build env kernel clean run-inner

0 comments on commit c1294be

Please sign in to comment.