Add CI config
This commit is contained in:
parent
f2c478757f
commit
1ebae71422
1 changed files with 43 additions and 0 deletions
43
.github/workflows/ci.yml
vendored
Normal file
43
.github/workflows/ci.yml
vendored
Normal 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
|
Loading…
Reference in a new issue