Skip to content

build-linux-flavors #34

build-linux-flavors

build-linux-flavors #34

Workflow file for this run

# We put all of the different linux flavors in a separate workflow,
# so that we can have a different status badge for them.
name: Linux flavors
# Triggered from the main CI build workflow
on:
workflow_call:
workflow_dispatch:
repository_dispatch:
types: [ build-linux-flavors ]
jobs:
build-and-test-flavors:
#if: false # Temporarily disable
name: Build And Test Unix Flavors
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- build: ubuntu-bionic
os: ubuntu-latest
docker_image: ubuntu
docker_tag: bionic
#- build: ubuntu-latest
# os: ubuntu-latest
# docker_image: ubuntu
# docker_tag: latest
- build: ubuntu-rolling
os: ubuntu-latest
docker_image: ubuntu
docker_tag: rolling
#- build: ubuntu-devel
# os: ubuntu-latest
# docker_image: ubuntu
# docker_tag: devel
- build: fedora-latest
os: ubuntu-latest
docker_image: fedora
docker_tag: latest
- build: archlinux-latest
os: ubuntu-latest
docker_image: archlinux
docker_tag: latest
- build: alpine-latest
os: ubuntu-latest
docker_image: alpine
docker_tag: latest
steps:
- uses: actions/checkout@main
- name: Launch container
run: |
docker run -d --rm --name github-docker-builder -e LC_ALL="C" -e LANG="C" -v ${{ github.workspace }}:/build -w /build ${{ matrix.docker_image }}:${{ matrix.docker_tag }} tail -f /dev/null
docker ps
docker exec -e CI_BUILD=1 -e IMAGE=${{ matrix.docker_image }} -e IMAGE_TAG=${{ matrix.docker_tag }} -t github-docker-builder sh .github/preinstall.sh
- name: Update packages
run: |
docker exec -e CI_BUILD=1 -e IMAGE=${{ matrix.docker_image }} -e IMAGE_TAG=${{ matrix.docker_tag }} -t github-docker-builder bash .github/update-packages.sh
- name: Install dependencies
run: |
docker exec -e CI_BUILD=1 -e IMAGE=${{ matrix.docker_image }} -e IMAGE_TAG=${{ matrix.docker_tag }} -t github-docker-builder bash .github/install.sh
docker exec -e CI_BUILD=1 -e IMAGE=${{ matrix.docker_image }} -e IMAGE_TAG=${{ matrix.docker_tag }} -t github-docker-builder bash .github/install-post.sh
- name: Build and run project
run: |
docker exec -e CI_BUILD=1 -e IMAGE=${{ matrix.docker_image }} -e IMAGE_TAG=${{ matrix.docker_tag }} -t github-docker-builder bash .github/build.sh