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