forked from gap-system/docker
-
Notifications
You must be signed in to change notification settings - Fork 0
121 lines (113 loc) · 3.21 KB
/
main.yaml
File metadata and controls
121 lines (113 loc) · 3.21 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
---
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.0", "4.12.2", "4.12.1", "4.12.0"]' >> "$GITHUB_OUTPUT"
bare:
needs:
- define-matrix
strategy:
fail-fast: false
matrix:
gap-version: ${{ fromJSON(needs.define-matrix.outputs.versions) }}
operating-system-base: ${{ fromJSON(needs.define-matrix.outputs.systems) }}
uses: ./.github/workflows/workflow-dispatch-build.yaml
with:
gap-type: gap
target: bare
gap-version: ${{ matrix.gap-version }}
operating-system-base: ${{ matrix.operating-system-base }}
slim:
needs:
- define-matrix
- 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/workflow-dispatch-build.yaml
with:
gap-type: gap
target: slim
gap-version: ${{ matrix.gap-version }}
operating-system-base: ${{ matrix.operating-system-base }}
buildfull:
needs:
- define-matrix
- bare
- 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/workflow-dispatch-build.yaml
with:
gap-type: gap
target: buildfull
gap-version: ${{ matrix.gap-version }}
operating-system-base: ${{ matrix.operating-system-base }}
full:
needs:
- define-matrix
- bare
- slim
- buildfull
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/workflow-dispatch-build.yaml
with:
gap-type: gap
target: full
gap-version: ${{ matrix.gap-version }}
operating-system-base: ${{ matrix.operating-system-base }}
jupyter:
needs:
- define-matrix
- bare
- slim
- full
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/workflow-dispatch-build.yaml
with:
gap-type: jupyter-gap
target: full
gap-version: ${{ matrix.gap-version }}
operating-system-base: ${{ matrix.operating-system-base }}