2022-05-31 14:55:13 +01:00
|
|
|
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
|
2022-05-31 16:07:28 +01:00
|
|
|
tags: noop
|
2022-05-31 14:55:13 +01:00
|
|
|
|
|
|
|
- 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
|