From 45917c296d99fc3158cc0e08b9f3c4c165df5027 Mon Sep 17 00:00:00 2001 From: Moody Liu Date: Thu, 15 Aug 2024 17:09:22 +0100 Subject: [PATCH] ci: refactor test script --- .github/workflows/build-mos.yml | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build-mos.yml b/.github/workflows/build-mos.yml index 04e6f360..ee454f24 100644 --- a/.github/workflows/build-mos.yml +++ b/.github/workflows/build-mos.yml @@ -15,18 +15,15 @@ jobs: fail-fast: false matrix: config: - - { "name": "x86_64 limine", "arch": "x86_64" } - - { "name": "RISC-V limine", "arch": "riscv64" } + - { "name": "x86_64 limine", "arch": "x86_64", "bootwait": 20 } + - { "name": "RISC-V limine", "arch": "riscv64", "bootwait": 15 } build_type: [Debug, Release] steps: - - name: Install packages + - name: Install Packages run: | - pacman -Syu --noconfirm base-devel git nasm mtools jq ninja qemu-system-x86 gnu-efi cpio wget unzip cmake limine protobuf python-protobuf python-setuptools libisoburn - - - uses: actions/checkout@v4 - with: - submodules: true + pacman -Syu --noconfirm base-devel git nasm jq ninja cpio wget unzip cmake limine protobuf python-protobuf python-setuptools + pacman -Syu --noconfirm qemu-system-x86 qemu-system-riscv - name: Install Toolchains run: | @@ -49,6 +46,10 @@ jobs: rustup toolchain link mosdev /opt/mos-rust/ rustup default mosdev + - uses: actions/checkout@v4 + with: + submodules: true + - name: Configure run: | cmake \ @@ -80,7 +81,11 @@ jobs: - name: Test run: | cd build - ../tools/testing/main.py --arch ${{matrix.config.arch}} --kernel-tests -t 120 -w 15 + ../tools/testing/main.py \ + --arch ${{matrix.config.arch}} \ + --kernel-tests \ + -t 120 \ + -w ${{matrix.config.bootwait}} - name: Upload Test Results if: always()