Skip to content

Commit 5363fc4

Browse files
authored
feat: Add forwarding build-steps (#68)
1 parent 28fd3b0 commit 5363fc4

File tree

1 file changed

+55
-20
lines changed

1 file changed

+55
-20
lines changed

.github/workflows/main.yaml

Lines changed: 55 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,31 +17,66 @@ on:
1717
branches:
1818
- main
1919

20+
permissions:
21+
contents: read
22+
packages: write
23+
attestations: write
24+
id-token: write
25+
2026
jobs:
21-
docker-image-build:
22-
permissions:
23-
contents: read
24-
packages: write
25-
attestations: write
26-
id-token: write
27+
define-matrix:
28+
runs-on: ubuntu-latest
29+
outputs:
30+
versions: ${{ steps.matrix.outputs.versions }}
31+
systems: ${{ steps.matrix.outputs.systems }}
32+
steps:
33+
- name: define - gap-versions
34+
id: matrix
35+
run: |
36+
echo 'systems=["ubuntu-2204-lts"]' >> "$GITHUB_OUTPUT"
37+
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"
38+
39+
build-bare:
40+
needs:
41+
- define-matrix
42+
strategy:
43+
fail-fast: true
44+
matrix:
45+
gap-version: ${{ fromJSON(needs.define-matrix.outputs.versions) }}
46+
operating-system-base: ${{ fromJSON(needs.define-matrix.outputs.systems) }}
47+
uses: ./.github/workflows/worflow-dispatch-build.yaml
48+
with:
49+
gap-build: bare
50+
gap-version: ${{ matrix.gap-version }}
51+
operating-system-base: ${{ matrix.operating-system-base }}
52+
53+
build-slim:
54+
needs:
55+
- define-matrix
56+
- build-bare
57+
strategy:
58+
fail-fast: true
59+
matrix:
60+
gap-version: ${{ fromJSON(needs.define-matrix.outputs.versions) }}
61+
operating-system-base: ${{ fromJSON(needs.define-matrix.outputs.systems) }}
62+
uses: ./.github/workflows/worflow-dispatch-build.yaml
63+
with:
64+
gap-build: slim
65+
gap-version: ${{ matrix.gap-version }}
66+
operating-system-base: ${{ matrix.operating-system-base }}
67+
68+
build-full:
69+
needs:
70+
- define-matrix
71+
- build-bare
72+
- build-slim
2773
strategy:
2874
fail-fast: true
2975
matrix:
30-
operating-system-base:
31-
- ubuntu-2204-lts
32-
gap-build:
33-
- bare
34-
- slim
35-
- full
36-
gap-version:
37-
- 4.14.0
38-
- 4.13.1
39-
- 4.13.0
40-
- 4.12.2
41-
- 4.12.1
42-
- 4.12.0
76+
gap-version: ${{ fromJSON(needs.define-matrix.outputs.versions) }}
77+
operating-system-base: ${{ fromJSON(needs.define-matrix.outputs.systems) }}
4378
uses: ./.github/workflows/worflow-dispatch-build.yaml
4479
with:
80+
gap-build: full
4581
gap-version: ${{ matrix.gap-version }}
46-
gap-build: ${{ matrix.gap-build }}
4782
operating-system-base: ${{ matrix.operating-system-base }}

0 commit comments

Comments
 (0)