From 8b73f9c68fc76dfada1fbc35ac6f5c09eadc1735 Mon Sep 17 00:00:00 2001 From: nihui Date: Thu, 22 Feb 2024 22:41:07 +0800 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3ba58cc..f252589 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -64,3 +64,20 @@ jobs: run: | gcc main.c -o ruapu-mingw.exe ./ruapu-mingw.exe + + qemu: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + arch: [ arm, arm64, mips64le, ppc64le, riscv64, s390x ] + steps: + - uses: actions/checkout@v4 + - name: setup-qemu + uses: docker/setup-qemu-action@v3 + with: + platforms: linux/${{ matrix.arch }} + - name: build-test + run: | + docker run -u root --rm -v $(pwd):/${{ github.workspace }} -w ${{ github.workspace }} --platform linux/${{ matrix.arch }} debian:unstable-slim \ + /bin/bash -c "apt update && apt install -y build-essential && gcc main.c -o ruapu && ./ruapu"