2024-03-07 03:52:08 +00:00
|
|
|
name: Build ZealOS ISOs
|
2023-03-02 10:08:43 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2024-03-05 10:12:24 +00:00
|
|
|
branches:
|
|
|
|
- 'master'
|
2023-03-02 10:08:43 +00:00
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
|
|
|
- 'screenshots/**'
|
|
|
|
- '**/LICENSE'
|
|
|
|
pull_request:
|
2024-03-05 10:12:24 +00:00
|
|
|
branches:
|
|
|
|
- 'master'
|
2023-03-02 10:08:43 +00:00
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
|
|
|
- 'screenshots/**'
|
|
|
|
- '**/LICENSE'
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build
|
2024-03-05 10:12:24 +00:00
|
|
|
runs-on: ubuntu-latest
|
2023-03-02 10:08:43 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
submodules: 'true'
|
|
|
|
|
|
|
|
- name: Install Dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt-get -y update
|
|
|
|
sudo apt-get -y install build-essential git xorriso qemu-system-x86
|
|
|
|
|
2024-03-07 03:52:08 +00:00
|
|
|
- name: Enable KVM Group Perms
|
2024-03-05 10:21:29 +00:00
|
|
|
run: |
|
|
|
|
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
|
|
|
|
sudo udevadm control --reload-rules
|
|
|
|
sudo udevadm trigger --name-match=kvm
|
|
|
|
|
2024-03-07 03:52:08 +00:00
|
|
|
- name: Run ISOs Build Script
|
2024-03-05 10:21:29 +00:00
|
|
|
if: ${{ success() }}
|
2023-03-02 10:08:43 +00:00
|
|
|
run: |
|
|
|
|
cd build
|
|
|
|
./build-iso.sh --headless
|
|
|
|
cd ..
|
|
|
|
|
2024-03-07 03:52:08 +00:00
|
|
|
- name: Releasing Latest ISOs
|
2024-03-07 03:52:53 +00:00
|
|
|
if: ${{ success() && github.event_name == 'push'}}
|
2024-03-05 10:12:24 +00:00
|
|
|
uses: "GutPuncher/action-automatic-releases@latest"
|
2023-03-02 10:08:43 +00:00
|
|
|
with:
|
2024-03-05 10:12:24 +00:00
|
|
|
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
|
|
|
automatic_release_tag: "latest"
|
|
|
|
prerelease: false
|
|
|
|
title: "Pre-Built ISOs [${{ github.sha }}]"
|
|
|
|
files: ./build/*.iso
|
2023-03-02 10:08:43 +00:00
|
|
|
|
2024-03-07 03:52:08 +00:00
|
|
|
- name: OK
|
|
|
|
if: ${{ success() }}
|
|
|
|
run: |
|
|
|
|
echo "Build OK"
|