-
Notifications
You must be signed in to change notification settings - Fork 18
123 lines (97 loc) · 3.55 KB
/
build-deb-package.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
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
name: "Build Packages"
on:
push
jobs:
build_deb_debian_11:
name: "Build Debian Package"
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
# Fetch the whole history for all tags and branches (required for aleph.__version__)
fetch-depth: 0
- run: |
cd packaging && make all-podman-debian-11 && cd ..
ls packaging/target
- uses: actions/upload-artifact@v3
with:
name: aleph-vm.debian-11.deb
path: packaging/target/aleph-vm.debian-11.deb
build_deb_debian_12:
name: "Build Debian Package"
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
# Fetch the whole history for all tags and branches (required for aleph.__version__)
fetch-depth: 0
- run: |
cd packaging && make all-podman-debian-12 && cd ..
ls packaging/target
- uses: actions/upload-artifact@v3
with:
name: aleph-vm.debian-12.deb
path: packaging/target/aleph-vm.debian-12.deb
build_deb_ubuntu_22_04:
name: "Build Ubuntu Package"
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
# Fetch the whole history for all tags and branches (required for aleph.__version__)
fetch-depth: 0
- run: |
cd packaging && make all-podman-ubuntu-2204 && cd ..
ls packaging/target
- uses: actions/upload-artifact@v3
with:
name: aleph-vm.ubuntu-22.04.deb
path: packaging/target/aleph-vm.ubuntu-22.04.deb
build_rootfs_debian_11:
name: "Build runtime aleph-debian-11-python"
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Workaround github issue https://github.com/actions/runner-images/issues/7192
run: sudo echo RESET grub-efi/install_devices | sudo debconf-communicate grub-pc
- run: |
sudo apt update
sudo apt install -y debootstrap
cd runtimes/aleph-debian-11-python && sudo ./create_disk_image.sh && cd ../..
- uses: actions/upload-artifact@v3
with:
name: aleph-debian-11-python.squashfs
path: runtimes/aleph-debian-11-python/rootfs.squashfs
build_rootfs_debian_12:
name: "Build runtime aleph-debian-12-python"
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Workaround github issue https://github.com/actions/runner-images/issues/7192
run: sudo echo RESET grub-efi/install_devices | sudo debconf-communicate grub-pc
- run: |
sudo apt update
sudo apt install -y debootstrap
cd runtimes/aleph-debian-12-python && sudo ./create_disk_image.sh && cd ../..
- uses: actions/upload-artifact@v3
with:
name: aleph-debian-12-python.squashfs
path: runtimes/aleph-debian-12-python/rootfs.squashfs
build_example_venv_volume:
name: "Build example squashfs volume using Docker"
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- run: |
docker build -t aleph-vm-build-squashfs -f examples/volumes/Dockerfile examples/volumes
docker run --rm -v "$(pwd)":/mnt aleph-vm-build-squashfs
- uses: actions/upload-artifact@v3
with:
name: example-volume-venv.squashfs
path: volume-venv.squashfs