44 lines
854 B
YAML
44 lines
854 B
YAML
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
|
|
tags: noop
|
|
|
|
- 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
|