2023-06-30 00:22:49 +02:00

47 lines
1.1 KiB
YAML

name: CI
on:
create: { }
push: { }
pull_request: { }
permissions:
contents: write
jobs:
build:
runs-on: [self-hosted, hetzner-cax21]
outputs:
pkgfile: ${{ steps.pkgname.outputs.pkgfile }}
steps:
- name: Check out repo
uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt update -qq
sudo apt install -yqq libguestfs-tools qemu-utils qemu-system-arm qemu-efi-aarch64 qemu-block-extra qemu-user-static binfmt-support rsync sudo wget xz-utils pigz mount dosfstools libarchive-tools
- name: Build firmware
run: |
./build_raspberry_pi.sh
- name: Compress firmware
run: |
pigz -9 raspikiosk.img
- name: Debug info
run: |
ls -lAh .
- name: Release build artifacts
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
body_path: ./raspikiosk.version
files: |
./raspikiosk.img.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}