-
-
Notifications
You must be signed in to change notification settings - Fork 39
79 lines (68 loc) · 1.94 KB
/
test-build.yml
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
name: test-build
on:
workflow_dispatch:
pull_request:
push:
schedule:
- cron: "30 3 * * 2"
concurrency:
group: "${{ github.ref }}"
cancel-in-progress: true
jobs:
build-debian:
strategy:
# Keep other matrix jobs running, even if one fails.
fail-fast: false
matrix:
host_release:
- unstable
- trixie
- bookworm
# We want a working shell, qemu, python and docker. Specific version should not matter (much).
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: ./test/gha-build-deb.sh
name: "Build .deb for ${{matrix.host_release}}"
env:
HOST_RELEASE: ${{matrix.host_release}}
- name: Archive built .deb
uses: actions/upload-artifact@v4
with:
name: deb-${{matrix.host_release}}
if-no-files-found: error
path: |
*.deb
build-iso:
strategy:
fail-fast: false
matrix:
host_release:
- bookworm
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: ./test/gha-build-iso.sh initial
name: "Build ISO on ${{matrix.host_release}}"
env:
HOST_RELEASE: ${{matrix.host_release}}
- name: Archive built ISO
if: always()
uses: actions/upload-artifact@v4
with:
name: grml-live-build-result-initial-${{matrix.host_release}}
if-no-files-found: error
path: |
results-initial/*
- run: ./test/gha-build-iso.sh build-only-twice
name: "Repack ISO twice on ${{matrix.host_release}}"
env:
HOST_RELEASE: ${{matrix.host_release}}
- name: Archive repacked ISO
if: always()
uses: actions/upload-artifact@v4
with:
name: grml-live-build-result-repack-${{matrix.host_release}}
if-no-files-found: error
path: |
results-build-only-second/*