-
Notifications
You must be signed in to change notification settings - Fork 620
69 lines (66 loc) · 2.65 KB
/
linux-flavors.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# 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_run:
workflows: ["CI"]
types:
- completed
#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