forked from Botspot/pi-apps
-
Notifications
You must be signed in to change notification settings - Fork 0
230 lines (219 loc) · 8.54 KB
/
Copy pathtest_build.yml
File metadata and controls
230 lines (219 loc) · 8.54 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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
name: Test_Build
# Controls when the workflow will run
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
name:
description: 'App Name, PR #, or zip URL'
required: true
default: ''
bullseye:
description: 'Build on PiOS Bullseye'
required: true
type: boolean
bookworm:
description: 'Build on PiOS Bookworm'
required: true
type: boolean
trixie:
description: 'Build on PiOS Trixie (Beta)'
required: true
type: boolean
architecture:
type: choice
description: 'For Bullseye/Bookworm, test on 32bit, 64bit, or Both if available'
options:
- Both
- 64bit
- 32bit
l4t_jammy_64:
description: 'Build on Switchroot Ubuntu Jammy 64bit'
required: true
type: boolean
l4t_noble_64:
description: 'Build on Switchroot Ubuntu Noble 64bit'
required: true
type: boolean
noble_64:
description: 'Build on RPi Ubuntu Noble 64bit'
required: true
type: boolean
run-name: Testing ${{ inputs.name }}
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
bullseye-32bit:
runs-on: ubuntu-24.04-arm
if: ${{ inputs.bullseye && ( inputs.architecture == '32bit' || inputs.architecture == 'Both' ) }}
steps:
- uses: actions/checkout@v4
- name: Test installing app on bullseye armhf
uses: theofficialgman/chroot-runner-action@v0
with:
base_image: https://downloads.raspberrypi.com/raspios_oldstable_armhf/images/raspios_oldstable_armhf-2025-05-07/2025-05-06-raspios-bullseye-armhf.img.xz
bind_mount_repository: yes
image_additional_mb: 20000
cpu_info: cpuinfo/raspberrypi_4b
copy_repository_path: /home/runner/pi-apps
export_github_env: yes
import_github_env: true
shell: /bin/bash
commands: |
export name="${{ inputs.name }}"
./.github/workflows/test_build_commands.sh
bookworm-32bit:
runs-on: ubuntu-24.04-arm
if: ${{ inputs.bookworm && ( inputs.architecture == '32bit' || inputs.architecture == 'Both' ) }}
steps:
- uses: actions/checkout@v4
- name: Test installing app on bookworm armhf
uses: theofficialgman/chroot-runner-action@v0
with:
base_image: https://downloads.raspberrypi.com/raspios_oldstable_armhf/images/raspios_oldstable_armhf-2025-10-02/2025-10-01-raspios-bookworm-armhf.img.xz
bind_mount_repository: yes
image_additional_mb: 20000
cpu_info: cpuinfo/raspberrypi_4b
copy_repository_path: /home/runner/pi-apps
export_github_env: yes
import_github_env: true
shell: /bin/bash
commands: |
export name="${{ inputs.name }}"
./.github/workflows/test_build_commands.sh
trixie-32bit:
runs-on: ubuntu-24.04-arm
if: ${{ inputs.trixie && ( inputs.architecture == '32bit' || inputs.architecture == 'Both' ) }}
steps:
- uses: actions/checkout@v4
- name: Test installing app on trixie armhf
uses: theofficialgman/chroot-runner-action@v0
with:
base_image: https://downloads.raspberrypi.com/raspios_armhf/images/raspios_armhf-2025-10-02/2025-10-01-raspios-trixie-armhf.img.xz
bind_mount_repository: yes
image_additional_mb: 20000
cpu_info: cpuinfo/raspberrypi_4b
copy_repository_path: /home/runner/pi-apps
export_github_env: yes
import_github_env: true
shell: /bin/bash
commands: |
export name="${{ inputs.name }}"
./.github/workflows/test_build_commands.sh
bullseye-64bit:
runs-on: ubuntu-24.04-arm
if: ${{ inputs.bullseye && ( inputs.architecture == '64bit' || inputs.architecture == 'Both' ) }}
steps:
- uses: actions/checkout@v4
- name: Test installing app on bullseye arm64
uses: theofficialgman/chroot-runner-action@v0
with:
base_image: https://downloads.raspberrypi.com/raspios_oldstable_arm64/images/raspios_oldstable_arm64-2025-05-07/2025-05-06-raspios-bullseye-arm64.img.xz
bind_mount_repository: yes
image_additional_mb: 20000
cpu_info: cpuinfo/raspberrypi_4b
copy_repository_path: /home/runner/pi-apps
export_github_env: yes
import_github_env: true
shell: /bin/bash
commands: |
export name="${{ inputs.name }}"
./.github/workflows/test_build_commands.sh
bookworm-64bit:
runs-on: ubuntu-24.04-arm
if: ${{ inputs.bookworm && ( inputs.architecture == '64bit' || inputs.architecture == 'Both' ) }}
steps:
- uses: actions/checkout@v4
- name: Test installing app on bookworm arm64
uses: theofficialgman/chroot-runner-action@v0
with:
base_image: https://downloads.raspberrypi.com/raspios_oldstable_arm64/images/raspios_oldstable_arm64-2025-10-02/2025-10-01-raspios-bookworm-arm64.img.xz
bind_mount_repository: yes
image_additional_mb: 20000
cpu_info: cpuinfo/raspberrypi_4b
copy_repository_path: /home/runner/pi-apps
export_github_env: yes
import_github_env: true
shell: /bin/bash
commands: |
export name="${{ inputs.name }}"
./.github/workflows/test_build_commands.sh
trixie-64bit:
runs-on: ubuntu-24.04-arm
if: ${{ inputs.trixie }}
steps:
- uses: actions/checkout@v4
- name: Test installing app on trixie arm64
uses: theofficialgman/chroot-runner-action@v0
with:
base_image: https://downloads.raspberrypi.com/raspios_arm64/images/raspios_arm64-2025-10-02/2025-10-01-raspios-trixie-arm64.img.xz
bind_mount_repository: yes
image_additional_mb: 20000
cpu_info: cpuinfo/raspberrypi_4b
copy_repository_path: /home/runner/pi-apps
export_github_env: yes
import_github_env: true
shell: /bin/bash
commands: |
export name="${{ inputs.name }}"
./.github/workflows/test_build_commands.sh
l4t-jammy-64bit:
runs-on: ubuntu-24.04-arm
if: ${{ inputs.l4t_jammy_64 }}
steps:
- uses: actions/checkout@v4
- name: Test installing app on L4T jammy arm64
uses: theofficialgman/chroot-runner-action@v0
with:
base_image: https://download.switchroot.org/ubuntu-jammy/theofficialgman-ubuntu-jammy-5.1.2-2025-08-16.7z
# add special arguments for switchroot image format
bootpartition:
rootpartition: 1
bind_mount_repository: yes
image_additional_mb: 20000
copy_repository_path: /home/runner/pi-apps
export_github_env: yes
import_github_env: true
shell: /bin/bash
commands: |
export name="${{ inputs.name }}"
./.github/workflows/test_build_commands.sh
l4t-noble-64bit:
runs-on: ubuntu-24.04-arm
if: ${{ inputs.l4t_noble_64 }}
steps:
- uses: actions/checkout@v4
- name: Test installing app on L4T noble arm64
uses: theofficialgman/chroot-runner-action@v0
with:
base_image: https://download.switchroot.org/ubuntu-noble/theofficialgman-kubuntu-noble-5.1.2-2025-08-16.7z
# add special arguments for switchroot image format
bootpartition:
rootpartition: 1
bind_mount_repository: yes
image_additional_mb: 20000
copy_repository_path: /home/runner/pi-apps
export_github_env: yes
import_github_env: true
shell: /bin/bash
commands: |
export name="${{ inputs.name }}"
./.github/workflows/test_build_commands.sh
noble-64bit:
runs-on: ubuntu-24.04-arm
if: ${{ inputs.noble_64 }}
steps:
- uses: actions/checkout@v4
- name: Test installing app on noble arm64
uses: theofficialgman/chroot-runner-action@v0
with:
base_image: https://cdimage.ubuntu.com/releases/24.04/release/ubuntu-24.04.3-preinstalled-desktop-arm64+raspi.img.xz
bind_mount_repository: yes
image_additional_mb: 20000
cpu_info: cpuinfo/raspberrypi_4b
copy_repository_path: /home/runner/pi-apps
export_github_env: yes
import_github_env: true
shell: /bin/bash
commands: |
export name="${{ inputs.name }}"
./.github/workflows/test_build_commands.sh