forked from systemd/mkosi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yaml
58 lines (53 loc) · 1.93 KB
/
action.yaml
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
name: setup-mkosi
description: Install mkosi and all its dependencies
runs:
using: composite
steps:
- name: Dependencies
shell: bash
run: |
# For archlinux-keyring and pacman
sudo add-apt-repository ppa:michel-slm/kernel-utils
sudo apt-get update
sudo apt-get install --assume-yes --no-install-recommends \
debootstrap \
zypper \
dnf \
pacman-package-manager \
archlinux-keyring \
makepkg \
systemd-container \
qemu-system-x86 \
ovmf \
e2fsprogs \
xfsprogs \
squashfs-tools \
btrfs-progs \
mtools \
python3-pefile
sudo pacman-key --init
sudo pacman-key --populate archlinux
- name: Update systemd
shell: bash
working-directory: ${{ github.action_path }}
run: |
echo "deb-src http://archive.ubuntu.com/ubuntu/ $(lsb_release -cs) main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list
sudo apt-get update
sudo apt-get build-dep systemd
sudo apt-get install libfdisk-dev
git clone https://github.com/systemd/systemd --depth=1
meson systemd/build systemd -Drepart=true -Defi=true
ninja -C systemd/build systemd-nspawn systemd-dissect systemd-repart systemd-analyze bootctl ukify
sudo ln -svf $PWD/systemd/build/systemd-nspawn /usr/bin/systemd-nspawn
sudo ln -svf $PWD/systemd/build/systemd-dissect /usr/bin/systemd-dissect
sudo ln -svf $PWD/systemd/build/systemd-repart /usr/bin/systemd-repart
sudo ln -svf $PWD/systemd/build/systemd-analyze /usr/bin/systemd-analyze
sudo ln -svf $PWD/systemd/build/bootctl /usr/bin/bootctl
sudo ln -svf $PWD/systemd/build/ukify /usr/bin/ukify
systemd-nspawn --version
systemd-dissect --version
systemd-repart --version
bootctl --version
- name: Install
shell: bash
run: sudo python3 -m pip install ${{ github.action_path }}