Skip to content

Commit

Permalink
simplify CI w/ QEMU
Browse files Browse the repository at this point in the history
  • Loading branch information
FGasper committed Apr 15, 2022
1 parent cb2f1cd commit b85bd24
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/all.yaml
Expand Up @@ -138,14 +138,17 @@ jobs:
qemu:
runs-on: ubuntu-latest

name: QEMU (${{ matrix.platform }})

strategy:
matrix:
platform:
- s390x
- arm32v7

steps:
- uses: actions/checkout@v3
- name: Get the qemu container
run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- name: Run tests on ${{ matrix.docker_image }}
run: docker run --rm --interactive ${{ matrix.platform }}/ubuntu bash -c "apt update; apt install -y curl perl make git gcc; git clone --recurse-submodules $GITHUB_SERVER_URL/$GITHUB_REPOSITORY; cd $( echo $GITHUB_REPOSITORY | cut -d/ -f2 ); curl -L https://cpanmin.us | perl - --notest --installdeps .; perl Makefile.PL; make; prove -wlvmb t"
- name: Run tests on ${{ matrix.platform }}
run: docker run --rm --interactive --mount type=bind,source=$(pwd),target=/host ${{ matrix.platform }}/ubuntu bash -c "apt update; apt install -y curl perl make git gcc; perl -V; cd /host; curl -L https://cpanmin.us | perl - --notest --installdeps .; perl Makefile.PL; make; prove -wlvmb t"

0 comments on commit b85bd24

Please sign in to comment.