Repository navigation
137 lines (136 loc) · 4.91 KB
/
Copy pathapt-arm.yml
File metadata and controls
137 lines (136 loc) · 4.91 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
name: Apt based Linux (AArch64)
on:
push:
branches:
- master
- fluent-package-v5
- fluent-package-v6
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.head_ref || github.sha }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
define-matrix:
runs-on: ubuntu-24.04-arm
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- id: set-matrix
# 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
run: echo "matrix=$(cat apt-arm.matrix.json | jq --compact-output)" >> $GITHUB_OUTPUT
working-directory: .github/workflows/
build:
name: Build
runs-on: ubuntu-24.04-arm
needs: define-matrix
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.define-matrix.outputs.matrix) }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Build deb on ${{ matrix.label }}
uses: ./.github/actions/build-deb
with:
rake-job: ${{ matrix.rake-job }}-arm64
next-major: 'false'
cache-group: v6
rake-options: ${{ matrix.rake-options }}
check_package_size:
name: Check Package Size
runs-on: ubuntu-24.04-arm
needs: [define-matrix, build]
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.define-matrix.outputs.matrix) }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: packages-${{ matrix.rake-job }}-arm64
path: fluent-package/apt/repositories
- name: Check Package Size
run: |
fluent-package/apt/pkgsize-test.sh ${{ matrix.rake-job }} arm64
binstubs_test:
name: Binstubs Test
runs-on: ubuntu-24.04-arm
needs: [define-matrix, build]
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.define-matrix.outputs.matrix) }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Binstubs Test on ${{ matrix.label }}
uses: ./.github/actions/test-on-docker
with:
rake-job: ${{ matrix.rake-job }}-arm64
repository-type: apt
test-docker-image: ${{ matrix.test-docker-image }}
test-script: binstubs-test.sh
installation_test:
name: Installation Test
runs-on: ubuntu-24.04-arm
needs: [define-matrix, build]
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.define-matrix.outputs.matrix) }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Installation Test on ${{ matrix.label }}
uses: ./.github/actions/test-on-docker
with:
rake-job: ${{ matrix.rake-job }}-arm64
repository-type: apt
test-docker-image: ${{ matrix.test-docker-image }}
test-script: install-test.sh
piuparts_test:
name: Piuparts Test
runs-on: ubuntu-24.04-arm
needs: [define-matrix, build]
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.define-matrix.outputs.matrix) }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Piuparts Test on ${{ matrix.label }}
uses: ./.github/actions/test-on-docker
with:
rake-job: ${{ matrix.rake-job }}-arm64
docker-options: --privileged
repository-type: apt
test-docker-image: ${{ matrix.test-docker-image }}
test-script: piuparts-test.sh
serverspec_test:
name: Serverspec Test
runs-on: ubuntu-24.04-arm
needs: [define-matrix, build]
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.define-matrix.outputs.matrix) }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Serverspec Test on ${{ matrix.label }}
uses: ./.github/actions/test-on-docker
with:
rake-job: ${{ matrix.rake-job }}-arm64
repository-type: apt
test-docker-image: ${{ matrix.test-docker-image }}
test-script: serverspec-test.sh
confluent_test:
name: Confluent Test
runs-on: ubuntu-24.04-arm
needs: [define-matrix, build]
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.define-matrix.outputs.matrix) }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Confluent Test on ${{ matrix.label }}
uses: ./.github/actions/test-on-docker
with:
rake-job: ${{ matrix.rake-job }}-arm64
repository-type: apt
test-docker-image: ${{ matrix.test-docker-image }}
test-script: confluent-test.sh