-
Notifications
You must be signed in to change notification settings - Fork 18
87 lines (67 loc) · 2.27 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
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@v3
- name: Unshallow
run: |
git fetch --prune --unshallow
git describe --tags
- 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_ubuntu_22_04:
name: "Build Ubuntu Package"
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Unshallow
run: |
git fetch --prune --unshallow
git describe --tags
- 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:
name: "Build runtime aleph-debian-11-python"
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- 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_example_venv_volume:
name: "Build example squashfs volume using Docker"
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- 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