Skip to content

Commit

Permalink
actions/mkosi@main 2
Browse files Browse the repository at this point in the history
  • Loading branch information
vt-alt committed Aug 6, 2024
1 parent 69f48b8 commit a2eec05
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/mkosi-boot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,13 @@ jobs:
- uses: actions/checkout@v3
- run: sudo apt-get update
- run: sudo apt-get install -y debootstrap qemu-system-x86 systemd-container expect
- name: Install mkosi from git
# Native focal package seems to be too old (v5) and not even
# able to build images properly.
- uses: systemd/mkosi@main
- name: Check mkosi
run: |
sudo python3 -m pip install git+https://github.com/systemd/mkosi.git@v14
sudo sed -i 's/linux-generic/linux-virtual/' /usr/local/lib/python*/dist-packages/mkosi/__init__.py
sudo rm -f /dev/kvm
echo /usr/local/bin >> $GITHUB_PATH
mkosi --version
- name: Create bootable image using mkosi
run: sudo mkosi -r ${{ matrix.release }} --cache=mkosi.cache
run: mkosi -r ${{ matrix.release }} --cache=mkosi.cache

- name: Boot image on qemu
run: |
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/mkosi-mainline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,11 @@ jobs:
steps:
- uses: actions/checkout@v3
- run: sudo apt-get update
- run: sudo apt-get install -y mkosi
- run: sudo apt-get install -y debootstrap qemu-system-x86 systemd-container expect sysvbanner
- name: Install mkosi from git
# Native focal package seems to be too old (v5) and not even
# able to build images properly.
- uses: systemd/mkosi@main
- name: Check mkosi
run: |
sudo rm -f /dev/kvm
mkosi --version
- name: Install debootstrap from Ubuntu git
run: |
Expand All @@ -37,7 +35,7 @@ jobs:
git diff
- name: Create bootable image using mkosi
run: sudo mkosi -r ${{ env.series }} --cache=mkosi.cache --prepare-script=.github/workflows/dpkg-i.sh
run: mkosi -r ${{ env.series }} --cache=mkosi.cache --prepare-script=.github/workflows/dpkg-i.sh

- name: Boot image on qemu
run: |
Expand Down

0 comments on commit a2eec05

Please sign in to comment.