Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nihui authored Feb 22, 2024
1 parent a34dd7a commit 8b73f9c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 8b73f9c

Please sign in to comment.