-
Notifications
You must be signed in to change notification settings - Fork 12
103 lines (77 loc) · 2.96 KB
/
raspi.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
name: RL RPi Image Generation
on:
workflow_dispatch
jobs:
build_rpi_tarball:
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v4
with:
ref: 'rpi'
- name: Install needed packages
run: |
sudo rm -rf /etc/apt/sources.list.d/microsoft-prod.list
sudo rm -rf /var/lib/apt/lists/*
sudo apt-get update && sudo apt-get install debootstrap -y
sudo ln -sfn /usr/share/debootstrap/scripts/gutsy /usr/share/debootstrap/scripts/lunar
sudo dpkg -i debs/live-build_*_all.deb
sudo mv /usr/share/debootstrap/functions functions
sudo patch -i 0002-remove-WRONGSUITE-error.patch
sudo mv functions /usr/share/debootstrap/functions
sudo cp binary_grub-efi /usr/lib/live/build/binary_grub-efi
- name: Make scripts executable
run: chmod -R +x build.sh etc/auto/config etc/terraform.conf etc/
- name: Build tarball
run: sudo ./build.sh etc/terraform.conf
- uses: actions/[email protected]
with:
path: binary/
key: tar-rpi-${{ github.run_id }}
deploy_rpi_desktop:
needs: build_rpi_tarball
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: 'rpi'
- uses: actions/[email protected]
with:
path: binary/
key: tar-rpi-${{ github.run_id }}
- name: Deploy to partition
run: source ./etc/terraform.conf && VER="${VERSION}${SUBVER}" && sudo ./debos-docker -t image:"Rhino-Linux-${VER}-rpi-desktop.img" -m 10G raspberrypi-desktop.yaml
- name: Place output folder
run: sudo mkdir -p builds/rpi-desktop
- name: Move to output folder and compress
run: |
sudo mv Rhino*rpi-desktop.img builds/rpi-desktop/
sudo xz -v builds/rpi-desktop/Rhino*rpi-desktop.img
echo "IMGRPD=$(cd builds/rpi-desktop; ls *.img.xz)" >> $GITHUB_ENV
- uses: actions/[email protected]
with:
name: ${{ env.IMGRPD }}
path: builds/rpi-desktop/${{ env.IMGRPD }}
deploy_rpi_server:
needs: build_rpi_tarball
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: 'rpi'
- uses: actions/[email protected]
with:
path: binary/
key: tar-rpi-${{ github.run_id }}
- name: Deploy to partition
run: source ./etc/terraform.conf && VER="${VERSION}${SUBVER}" && sudo ./debos-docker -t image:"Rhino-Linux-${VER}-rpi-server.img" -m 10G raspberrypi-server.yaml
- name: Place output folder
run: sudo mkdir -p builds/rpi-server
- name: Move to output folder and compress
run: |
sudo mv Rhino*rpi-server.img builds/rpi-server/
sudo xz -v builds/rpi-server/Rhino*rpi-server.img
echo "IMGRPS=$(cd builds/rpi-server; ls *.img.xz)" >> $GITHUB_ENV
- uses: actions/[email protected]
with:
name: ${{ env.IMGRPS }}
path: builds/rpi-server/${{ env.IMGRPS }}