You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
662 B
YAML
29 lines
662 B
YAML
name: C/C++ CI docker
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
matrix:
|
|
include:
|
|
- os: ubuntu-latest
|
|
dockerfile: Dockerfile.arm64
|
|
label: arm64
|
|
- os: ubuntu-latest
|
|
dockerfile: Dockerfile.rpi
|
|
label: armv6l
|
|
- os: ubuntu-latest
|
|
dockerfile: Dockerfile
|
|
label: amd64
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Build an image from Dockerfile
|
|
run: |
|
|
docker run --rm --privileged hypriot/qemu-register
|
|
docker build -t docker.io/${{ github.repository }}:${{ matrix.label }} -f ${{ matrix.dockerfile }} .
|