Add CI config

This commit is contained in:
Jake Howard 2022-05-31 14:55:13 +01:00
parent f2c478757f
commit 1ebae71422
Signed by: jake
GPG key ID: 57AFB45680EDD477

43
.github/workflows/ci.yml vendored Normal file
View file

@ -0,0 +1,43 @@
name: CI
on:
push:
branches:
- "*"
pull_request:
jobs:
docker:
runs-on: ubuntu-latest
strategy:
matrix:
platform: [linux/386, linux/amd64, linux/arm64/v8]
steps:
- uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build containers
uses: docker/build-push-action@v2
with:
platforms: ${{ matrix.platform }}
load: true
- name: Show image info
run: docker images
build:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install compilers
run: sudo apt install build-essential
- name: compile
run: make