-
Notifications
You must be signed in to change notification settings - Fork 3
85 lines (79 loc) · 2.28 KB
/
main.yaml
File metadata and controls
85 lines (79 loc) · 2.28 KB
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
---
name: Container - build and push
on:
pull_request:
paths:
- '.github/**'
- 'src/dockerfiles/**'
branches:
- main
schedule:
- cron: '30 10 * * 1'
push:
paths:
- '.github/**'
- 'src/dockerfiles/**'
branches:
- main
permissions:
contents: read
packages: write
attestations: write
id-token: write
jobs:
define-matrix:
runs-on: ubuntu-latest
outputs:
versions: ${{ steps.matrix.outputs.versions }}
systems: ${{ steps.matrix.outputs.systems }}
steps:
- name: define - gap-versions
id: matrix
run: |
echo 'systems=["ubuntu-2204-lts"]' >> "$GITHUB_OUTPUT"
echo 'versions=["4.14.0", "4.13.1", "4.13.1", "4.13.0", "4.12.2", "4.12.1", "4.12.0"]' >> "$GITHUB_OUTPUT"
build-bare:
runs-on: ubuntu-latest-8core
needs:
- define-matrix
strategy:
fail-fast: true
matrix:
gap-version: ${{ fromJSON(needs.define-matrix.outputs.versions) }}
operating-system-base: ${{ fromJSON(needs.define-matrix.outputs.systems) }}
uses: ./.github/workflows/worflow-dispatch-build.yaml
with:
gap-build: bare
gap-version: ${{ matrix.gap-version }}
operating-system-base: ${{ matrix.operating-system-base }}
build-slim:
runs-on: ubuntu-latest-8core
needs:
- define-matrix
- build-bare
strategy:
fail-fast: true
matrix:
gap-version: ${{ fromJSON(needs.define-matrix.outputs.versions) }}
operating-system-base: ${{ fromJSON(needs.define-matrix.outputs.systems) }}
uses: ./.github/workflows/worflow-dispatch-build.yaml
with:
gap-build: slim
gap-version: ${{ matrix.gap-version }}
operating-system-base: ${{ matrix.operating-system-base }}
build-full:
runs-on: ubuntu-latest-8core
needs:
- define-matrix
- build-bare
- build-slim
strategy:
fail-fast: true
matrix:
gap-version: ${{ fromJSON(needs.define-matrix.outputs.versions) }}
operating-system-base: ${{ fromJSON(needs.define-matrix.outputs.systems) }}
uses: ./.github/workflows/worflow-dispatch-build.yaml
with:
gap-build: full
gap-version: ${{ matrix.gap-version }}
operating-system-base: ${{ matrix.operating-system-base }}