@@ -9,31 +9,22 @@ concurrency:
99 group : ${{ github.head_ref || github.sha }}-${{ github.workflow }}
1010 cancel-in-progress : true
1111jobs :
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/
1222 build :
1323 name : Build
24+ needs : define-matrix
1425 strategy :
1526 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) }}
3728 runs-on : ubuntu-24.04-arm
3829 steps :
3930 - uses : actions/checkout@v4
6051 with :
6152 name : packages-${{ matrix.rake-job }}-arm64
6253 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
6367 - name : Check Package Size
6468 run : |
6569 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
6683 - name : Binstubs Test
6784 run : |
6885 mkdir -p .bundle
7390 --volume ${PWD}:/fluentd:ro \
7491 ${{ matrix.test-docker-image }} \
7592 /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
76106 - name : Installation Test
77107 run : |
78108 mkdir -p .bundle
@@ -83,6 +113,19 @@ jobs:
83113 --volume ${PWD}:/fluentd:ro \
84114 ${{ matrix.test-docker-image }} \
85115 /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
86129 - name : Piuparts (Install/Remove/Upgrade) Test
87130 run : |
88131 mkdir -p .bundle
@@ -94,6 +137,19 @@ jobs:
94137 --volume ${PWD}:/fluentd:ro \
95138 ${{ matrix.test-docker-image }} \
96139 /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
97153 - name : Serverspec Test
98154 run : |
99155 mkdir -p .bundle
@@ -104,6 +160,19 @@ jobs:
104160 --volume ${PWD}:/fluentd:ro \
105161 ${{ matrix.test-docker-image }} \
106162 /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
107176 - name : Confluent Test
108177 run : |
109178 mkdir -p .bundle
@@ -114,13 +183,3 @@ jobs:
114183 --volume ${PWD}:/fluentd:ro \
115184 ${{ matrix.test-docker-image }} \
116185 /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