Add setup-qemu action (#71)

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2020-08-07 11:05:37 +02:00
parent 36c90bc3ab
commit 64d53ac2cf
No known key found for this signature in database
GPG key ID: 3248E46B6BB8C7F7
14 changed files with 5770 additions and 0 deletions

36
.github/workflows/setup-qemu-ci.yml vendored Normal file
View file

@ -0,0 +1,36 @@
name: setup-qemu-ci
on:
push:
paths:
- .github/workflows/setup-qemu-ci.yml
- setup-qemu/**
pull_request:
paths:
- .github/workflows/setup-qemu-ci.yml
- setup-qemu/**
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
qemu-version:
- latest
- 4.2.0-7
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
uses: ./setup-qemu/
with:
qemu-version: ${{ matrix.qemu-version }}

View file

@ -0,0 +1,32 @@
name: setup-qemu-precheckin
on:
push:
paths:
- .github/workflows/setup-qemu-precheckin.yml
- setup-qemu/**
pull_request:
paths:
- .github/workflows/setup-qemu-precheckin.yml
- setup-qemu/**
jobs:
pre-checkin:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2.3.1
-
name: Install
run: yarn --cwd ./setup-qemu/ install
-
name: Pre-checkin
run: yarn --cwd ./setup-qemu/ run pre-checkin
-
name: Check for uncommitted changes
run: |
if [[ `git status --porcelain` ]]; then
git status --porcelain
echo "::warning::Found changes. Please run 'yarn --cwd ./setup-qemu/ run pre-checkin' and push"
fi