Skip to content

ci: refactor to use matrix to switch runs-on #379

ci: refactor to use matrix to switch runs-on

ci: refactor to use matrix to switch runs-on #379

Workflow file for this run

name: Linux
on:
push:
pull_request:
concurrency:
group: ${{ github.head_ref || github.sha }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
build:
name: Build & Test
strategy:
fail-fast: false
matrix:
include:
- dockerfile: v1.18/alpine
- dockerfile: v1.18/debian
- dockerfile: v1.18/arm64/debian
runs-on: >-
${{ (contains(matrix.dockerfile, 'arm64')) && 'ubuntu-24.04-arm' || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@master
- name: Build
run: make image DOCKERFILE=${{ matrix.dockerfile }} VERSION=test
- name: Test
run: make test DOCKERFILE=${{ matrix.dockerfile }} VERSION=test