-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Stéphane Graber <[email protected]>
- Loading branch information
Showing
1 changed file
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Build | ||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
image-build: | ||
name: Image build | ||
strategy: | ||
fail-fast: false | ||
runs-on: | ||
- self-hosted | ||
- cpu-4 | ||
- mem-4G | ||
- disk-100G | ||
- arch-amd64 | ||
- image-debian-12 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt-get install --yes \ | ||
debian-archive-keyring \ | ||
make \ | ||
pipx \ | ||
qemu-utils | ||
- name: Setup Incus | ||
run: | | ||
curl https://pkgs.zabbly.com/get/incus-daily | sudo sh | ||
sudo chmod 666 /var/lib/incus/unix.socket | ||
incus admin init --auto | ||
- name: Setup mkosi | ||
run: | | ||
pipx install git+https://github.com/systemd/mkosi.git | ||
- name: Build initial image | ||
run: | | ||
export PATH=${PATH}:/root/.local/bin | ||
make | ||
- name: Upload binaries to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
file: mkosi.output/incus.raw mkosi.output/debug.raw mkosi.output/IncusOS_*.efi mkosi.output/IncusOS_usr-* | ||
overwrite: true | ||
file_glob: true |