-
Notifications
You must be signed in to change notification settings - Fork 6
124 lines (116 loc) · 4.36 KB
/
Copy pathdebos.yml
File metadata and controls
124 lines (116 loc) · 4.36 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
name: Create Distro Image with Debos
on:
pull_request_target:
types: [labeled]
workflow_dispatch:
env:
RELEASE: v2026.1
WORKDIR: /home/workdir
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
build:
name: ${{ matrix.machine }}/${{ matrix.base }}/${{ matrix.suite }}/${{ matrix.type }}
runs-on: ubuntu-22.04
if: |
github.event_name == 'workflow_dispatch' ||
(github.event_name == 'pull_request_target' && github.event.label.name == 'run-workflow')
permissions:
contents: write
strategy:
fail-fast: true
matrix:
machine: [beagley-ai, t3-gem-o1, intel-corei7-64]
base: [ubuntu, debian, pardus]
suite: [jammy, bookworm, yirmiuc, yirmibes, noble]
type: [minimal, kiosk, desktop]
exclude:
- base: ubuntu
suite: yirmiuc
- base: ubuntu
suite: yirmibes
- base: ubuntu
suite: bookworm
- base: pardus
suite: jammy
- base: pardus
suite: bookworm
- base: pardus
suite: noble
- base: debian
suite: yirmiuc
- base: debian
suite: yirmibes
- base: debian
suite: jammy
- base: debian
suite: noble
include:
- machine: beagley-ai
arch: arm64
- machine: t3-gem-o1
arch: arm64
- machine: intel-corei7-64
arch: amd64
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Fetch repos
run: |
mkdir -p "$GITHUB_WORKSPACE/.repos"
python -m pip install vcstool
vcs import --skip-existing "$GITHUB_WORKSPACE/.repos" < ${{ github.workspace }}/repos.yml
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: arm64
image: tonistiigi/binfmt:latest
- name: Run debos
env:
IMG_FILE_NAME: gemstone-${{ matrix.type }}-${{ env.RELEASE }}-${{ matrix.base }}-${{ matrix.suite }}-${{ matrix.machine }}.img
IMG_SIZE: ${{ matrix.type == 'minimal' && '1024M' || matrix.type == 'kiosk' && '4096M' || '16384M' }}
run: |
for attempt in 1 2 3; do
echo "--- debos attempt $attempt ---"
docker run --rm \
--privileged \
--cgroupns host \
--net=host \
--security-opt seccomp=unconfined \
--volume /dev:/dev \
--volume /run/udev:/run/udev:ro \
--volume debos-scratch:/scratch \
--volume "$GITHUB_WORKSPACE:${{ env.WORKDIR }}" \
--volume "$GITHUB_WORKSPACE/.repos/src:${{ env.WORKDIR }}/src" \
--workdir "${{ env.WORKDIR }}" \
t3gemstone/debos:1.1.3.7 \
--scratchdir=/scratch \
--disable-fakemachine \
--artifactdir=${{ env.WORKDIR }} \
--template-var="workdir:${{ env.WORKDIR }}" \
--template-var="machine:${{ matrix.machine }}" \
--template-var="base:${{ matrix.base }}" \
--template-var="type:${{ matrix.type }}" \
--template-var="suite:${{ matrix.suite }}" \
--template-var="release:${{ env.RELEASE }}" \
--template-var="image:${{ env.IMG_FILE_NAME }}" \
--template-var="imagepath:${{ env.WORKDIR }}/${{ env.IMG_FILE_NAME }}" \
--template-var="imagesize:${{ env.IMG_SIZE }}" \
--template-var="arch:${{ matrix.arch }}" \
--template-var="ci:true" \
--verbose \
${{ env.WORKDIR }}/distro/distro.yaml 2>&1 && break
echo "debos attempt $attempt failed, retrying..."
docker volume rm debos-scratch 2>/dev/null || true
docker volume create debos-scratch
done
- name: Upload Image
uses: actions/upload-artifact@v4
env:
IMG_FILE_NAME: gemstone-${{ matrix.type }}-${{ env.RELEASE }}-${{ matrix.base }}-${{ matrix.suite }}-${{ matrix.machine }}
with:
name: ${{ env.IMG_FILE_NAME }}
path: ${{ github.workspace }}/${{ env.IMG_FILE_NAME }}.img