2020-08-07 11:05:37 +02:00
|
|
|
name: setup-qemu-ci
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2020-08-11 22:55:56 +02:00
|
|
|
branches:
|
|
|
|
- master
|
2020-08-07 11:05:37 +02:00
|
|
|
paths:
|
|
|
|
- .github/workflows/setup-qemu-ci.yml
|
|
|
|
- setup-qemu/**
|
|
|
|
pull_request:
|
2020-08-11 22:55:56 +02:00
|
|
|
branches:
|
|
|
|
- master
|
2020-08-07 11:05:37 +02:00
|
|
|
paths:
|
|
|
|
- .github/workflows/setup-qemu-ci.yml
|
|
|
|
- setup-qemu/**
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2020-08-11 21:49:46 +02:00
|
|
|
image:
|
|
|
|
- tonistiigi/binfmt:latest
|
2020-08-11 21:56:01 +02:00
|
|
|
- tonistiigi/binfmt:master
|
2020-08-11 21:49:46 +02:00
|
|
|
platforms:
|
|
|
|
- all
|
|
|
|
- arm64,riscv64,arm
|
2020-08-07 11:05:37 +02:00
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Runner info
|
|
|
|
run: |
|
|
|
|
sudo apt-get install -y hwinfo
|
|
|
|
sudo hwinfo --short
|
|
|
|
sudo mount
|
|
|
|
-
|
|
|
|
name: Checkout
|
|
|
|
uses: actions/checkout@v2.3.1
|
|
|
|
-
|
|
|
|
name: Set up QEMU
|
2020-08-12 01:48:35 +02:00
|
|
|
id: qemu
|
2020-08-07 11:05:37 +02:00
|
|
|
uses: ./setup-qemu/
|
|
|
|
with:
|
2020-08-11 21:53:26 +02:00
|
|
|
image: ${{ matrix.image }}
|
|
|
|
platforms: ${{ matrix.platforms }}
|
2020-08-12 01:48:35 +02:00
|
|
|
-
|
|
|
|
name: Available platforms
|
|
|
|
run: echo ${{ steps.qemu.outputs.platforms }}
|
2020-08-12 02:13:00 +02:00
|
|
|
-
|
|
|
|
name: Dump context
|
|
|
|
uses: crazy-max/ghaction-dump-context@v1
|