multi-distro CI

This commit is contained in:
k.koide 2024-03-29 14:20:09 +09:00
parent 9edbba4756
commit b1916f4733
2 changed files with 5 additions and 1 deletions

View File

@ -16,6 +16,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
DISTRO: [jammy]
TOOLCHAIN: [gcc, llvm] TOOLCHAIN: [gcc, llvm]
steps: steps:
@ -35,5 +36,6 @@ jobs:
uses: docker/build-push-action@v2 uses: docker/build-push-action@v2
with: with:
file: ${{github.workspace}}/docker/Dockerfile.${{ matrix.TOOLCHAIN }} file: ${{github.workspace}}/docker/Dockerfile.${{ matrix.TOOLCHAIN }}
build-args: BASE_IMAGE=ubuntu:${{ matrix.DISTRO }}
context: . context: .
push: false push: false

View File

@ -1,4 +1,6 @@
FROM ubuntu:jammy ARG BASE_IMAGE
FROM ${BASE_IMAGE}
ENV DEBIAN_FRONTEND=noninteractive ENV DEBIAN_FRONTEND=noninteractive