Skip to content

Commit

Permalink
github: Initial build workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Graber <[email protected]>
  • Loading branch information
stgraber committed Dec 6, 2024
1 parent a10e693 commit fd8de6a
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/build.yml
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

0 comments on commit fd8de6a

Please sign in to comment.