@@ -9,31 +9,22 @@ concurrency:
9
9
group : ${{ github.head_ref || github.sha }}-${{ github.workflow }}
10
10
cancel-in-progress : true
11
11
jobs :
12
+ define-matrix :
13
+ runs-on : ubuntu-24.04-arm
14
+ outputs :
15
+ matrix : ${{ steps.set-matrix.outputs.matrix }}
16
+ steps :
17
+ - uses : actions/checkout@v4
18
+ - id : set-matrix
19
+ # See https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/evaluate-expressions-in-workflows-and-actions#example-returning-a-json-object
20
+ run : echo "matrix=$(cat apt-arm.matrix.json | jq --compact-output)" >> $GITHUB_OUTPUT
21
+ working-directory : .github/workflows/
12
22
build :
13
23
name : Build
24
+ needs : define-matrix
14
25
strategy :
15
26
fail-fast : false
16
- matrix :
17
- label :
18
- - Debian GNU/Linux bookworm arm64
19
- - Debian GNU/Linux trixie arm64
20
- - Ubuntu Jammy arm64
21
- - Ubuntu Noble arm64
22
- include :
23
- - label : Debian GNU/Linux bookworm arm64
24
- rake-job : debian-bookworm
25
- test-docker-image : arm64v8/debian:bookworm
26
- - label : Debian GNU/Linux trixie arm64
27
- rake-job : debian-trixie
28
- test-docker-image : arm64v8/debian:trixie
29
- - label : Ubuntu Jammy arm64
30
- rake-job : ubuntu-jammy
31
- rake-options : LINTIAN=no
32
- test-docker-image : arm64v8/ubuntu:jammy
33
- - label : Ubuntu Noble arm64
34
- rake-job : ubuntu-noble
35
- rake-options : LINTIAN=no
36
- test-docker-image : arm64v8/ubuntu:noble
27
+ matrix : ${{ fromJSON(needs.define-matrix.outputs.matrix) }}
37
28
runs-on : ubuntu-24.04-arm
38
29
steps :
39
30
- uses : actions/checkout@v4
60
51
with :
61
52
name : packages-${{ matrix.rake-job }}-arm64
62
53
path : fluent-package/apt/repositories
54
+ check_package_size :
55
+ name : Check Package Size
56
+ runs-on : ubuntu-24.04-arm
57
+ needs : [define-matrix, build]
58
+ strategy :
59
+ fail-fast : false
60
+ matrix : ${{ fromJSON(needs.define-matrix.outputs.matrix) }}
61
+ steps :
62
+ - uses : actions/checkout@v4
63
+ - uses : actions/download-artifact@v4
64
+ with :
65
+ name : packages-${{ matrix.rake-job }}-arm64
66
+ path : fluent-package/apt/repositories
63
67
- name : Check Package Size
64
68
run : |
65
69
fluent-package/apt/pkgsize-test.sh ${{ matrix.rake-job }} arm64
70
+ binstubs_test :
71
+ name : Binstubs Test
72
+ runs-on : ubuntu-24.04-arm
73
+ needs : [define-matrix, build]
74
+ strategy :
75
+ fail-fast : false
76
+ matrix : ${{ fromJSON(needs.define-matrix.outputs.matrix) }}
77
+ steps :
78
+ - uses : actions/checkout@v4
79
+ - uses : actions/download-artifact@v4
80
+ with :
81
+ name : packages-${{ matrix.rake-job }}-arm64
82
+ path : fluent-package/apt/repositories
66
83
- name : Binstubs Test
67
84
run : |
68
85
mkdir -p .bundle
73
90
--volume ${PWD}:/fluentd:ro \
74
91
${{ matrix.test-docker-image }} \
75
92
/fluentd/fluent-package/apt/binstubs-test.sh
93
+ installation_test :
94
+ name : Installation Test
95
+ runs-on : ubuntu-24.04-arm
96
+ needs : [define-matrix, build]
97
+ strategy :
98
+ fail-fast : false
99
+ matrix : ${{ fromJSON(needs.define-matrix.outputs.matrix) }}
100
+ steps :
101
+ - uses : actions/checkout@v4
102
+ - uses : actions/download-artifact@v4
103
+ with :
104
+ name : packages-${{ matrix.rake-job }}-arm64
105
+ path : fluent-package/apt/repositories
76
106
- name : Installation Test
77
107
run : |
78
108
mkdir -p .bundle
@@ -83,6 +113,19 @@ jobs:
83
113
--volume ${PWD}:/fluentd:ro \
84
114
${{ matrix.test-docker-image }} \
85
115
/fluentd/fluent-package/apt/install-test.sh
116
+ piuparts_test :
117
+ name : Piuparts Test
118
+ runs-on : ubuntu-24.04-arm
119
+ needs : [define-matrix, build]
120
+ strategy :
121
+ fail-fast : false
122
+ matrix : ${{ fromJSON(needs.define-matrix.outputs.matrix) }}
123
+ steps :
124
+ - uses : actions/checkout@v4
125
+ - uses : actions/download-artifact@v4
126
+ with :
127
+ name : packages-${{ matrix.rake-job }}-arm64
128
+ path : fluent-package/apt/repositories
86
129
- name : Piuparts (Install/Remove/Upgrade) Test
87
130
run : |
88
131
mkdir -p .bundle
@@ -94,6 +137,19 @@ jobs:
94
137
--volume ${PWD}:/fluentd:ro \
95
138
${{ matrix.test-docker-image }} \
96
139
/fluentd/fluent-package/apt/piuparts-test.sh
140
+ serverspec_test :
141
+ name : Serverspec Test
142
+ runs-on : ubuntu-24.04-arm
143
+ needs : [define-matrix, build]
144
+ strategy :
145
+ fail-fast : false
146
+ matrix : ${{ fromJSON(needs.define-matrix.outputs.matrix) }}
147
+ steps :
148
+ - uses : actions/checkout@v4
149
+ - uses : actions/download-artifact@v4
150
+ with :
151
+ name : packages-${{ matrix.rake-job }}-arm64
152
+ path : fluent-package/apt/repositories
97
153
- name : Serverspec Test
98
154
run : |
99
155
mkdir -p .bundle
@@ -104,6 +160,19 @@ jobs:
104
160
--volume ${PWD}:/fluentd:ro \
105
161
${{ matrix.test-docker-image }} \
106
162
/fluentd/fluent-package/apt/serverspec-test.sh
163
+ confluent_test :
164
+ name : Confluent Test
165
+ runs-on : ubuntu-24.04-arm
166
+ needs : [define-matrix, build]
167
+ strategy :
168
+ fail-fast : false
169
+ matrix : ${{ fromJSON(needs.define-matrix.outputs.matrix) }}
170
+ steps :
171
+ - uses : actions/checkout@v4
172
+ - uses : actions/download-artifact@v4
173
+ with :
174
+ name : packages-${{ matrix.rake-job }}-arm64
175
+ path : fluent-package/apt/repositories
107
176
- name : Confluent Test
108
177
run : |
109
178
mkdir -p .bundle
@@ -114,13 +183,3 @@ jobs:
114
183
--volume ${PWD}:/fluentd:ro \
115
184
${{ matrix.test-docker-image }} \
116
185
/fluentd/fluent-package/apt/confluent-test.sh
117
- - name : Binstubs Test
118
- run : |
119
- mkdir -p .bundle
120
- docker run \
121
- --rm \
122
- --tty \
123
- --env CI=true \
124
- --volume ${PWD}:/fluentd:ro \
125
- ${{ matrix.test-docker-image }} \
126
- /fluentd/fluent-package/apt/binstubs-test.sh
0 commit comments