2020-08-07 05:05:37 -04:00
|
|
|
name: setup-qemu-ci
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2020-08-11 16:55:56 -04:00
|
|
|
branches:
|
|
|
|
- master
|
2020-08-14 14:01:01 -04:00
|
|
|
- v2-working-branch # remove when merged to master
|
2020-08-07 05:05:37 -04:00
|
|
|
paths:
|
|
|
|
- .github/workflows/setup-qemu-ci.yml
|
|
|
|
- setup-qemu/**
|
|
|
|
pull_request:
|
2020-08-11 16:55:56 -04:00
|
|
|
branches:
|
|
|
|
- master
|
2020-08-14 14:01:01 -04:00
|
|
|
- v2-working-branch # remove when merged to master
|
2020-08-07 05:05:37 -04:00
|
|
|
paths:
|
|
|
|
- .github/workflows/setup-qemu-ci.yml
|
|
|
|
- setup-qemu/**
|
|
|
|
|
|
|
|
jobs:
|
2020-08-12 08:07:04 -04:00
|
|
|
main:
|
2020-08-07 05:05:37 -04:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2020-08-11 15:49:46 -04:00
|
|
|
image:
|
|
|
|
- tonistiigi/binfmt:latest
|
2020-08-11 15:56:01 -04:00
|
|
|
- tonistiigi/binfmt:master
|
2020-08-11 15:49:46 -04:00
|
|
|
platforms:
|
|
|
|
- all
|
|
|
|
- arm64,riscv64,arm
|
2020-08-07 05:05:37 -04:00
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
|
|
|
uses: actions/checkout@v2.3.1
|
|
|
|
-
|
|
|
|
name: Set up QEMU
|
2020-08-11 19:48:35 -04:00
|
|
|
id: qemu
|
2020-08-07 05:05:37 -04:00
|
|
|
uses: ./setup-qemu/
|
|
|
|
with:
|
2020-08-11 15:53:26 -04:00
|
|
|
image: ${{ matrix.image }}
|
|
|
|
platforms: ${{ matrix.platforms }}
|
2020-08-11 19:48:35 -04:00
|
|
|
-
|
|
|
|
name: Available platforms
|
|
|
|
run: echo ${{ steps.qemu.outputs.platforms }}
|
2020-08-11 20:13:00 -04:00
|
|
|
-
|
|
|
|
name: Dump context
|
|
|
|
uses: crazy-max/ghaction-dump-context@v1
|