Skip to content

Commit

Permalink
ci: add ruyi qemu 64pl32
Browse files Browse the repository at this point in the history
Signed-off-by: Qinghao Shi <[email protected]>
  • Loading branch information
jamesbeyond committed May 11, 2024
1 parent 108ae90 commit 7f35101
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -278,5 +278,45 @@ jobs:
- name: Check Qemu Booting Kernel
run: .github/ci_scripts/check_qemu.exp 'cat /proc/version' 180

- name: Check perf test
run: .github/ci_scripts/check_qemu.exp 'perf test -s 5,15,16,17,18,21,50,60,62' 180 FAILED


ruyi-qemu-64lp32:
needs: kernel-build
runs-on: ubuntu-latest
container: ghcr.io/ruyisdk/linux-xuantie-kernel/ruyi-toolchain:latest
strategy:
fail-fast: false
matrix:
cpu: [ rv64 ]
kernel: [ linux-32ilp32 , linux-32ilp32-dirty ]
include:
- core_count: 4

steps:

- name: Checkout source
uses: actions/checkout@v4

- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: ${{ matrix.kernel }}.tar.gz

- name: Download rootfs and unpack artifacts
run: |
wget -qc https://github.com/c-sky/buildroot/releases/download/v1.0.11/rootfs_rv32.ext2.tar.gz
tar -xvf rootfs_rv32.ext2.tar.gz
tar -xvf ${{ matrix.kernel }}.tar.gz
- name: Run Qemu
run: |
qemu-system-riscv64 -cpu help
qemu-system-riscv64 -cpu ${{ matrix.cpu }} -nographic -smp ${{ matrix.core_count }} -M virt -kernel ./Image -append 'rootwait root=/dev/vda ro' -drive file=./rootfs_rv32.ext2,format=raw,id=hd0 -device virtio-blk-device,drive=hd0 -monitor none -serial telnet:localhost:5678,server &
- name: Check Qemu Booting Kernel
run: .github/ci_scripts/check_qemu.exp 'cat /proc/version' 180

- name: Check perf test
run: .github/ci_scripts/check_qemu.exp 'perf test -s 5,15,16,17,18,21,50,60,62' 180 FAILED

0 comments on commit 7f35101

Please sign in to comment.