mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-25 15:10:28 +00:00
Update build.yml
This commit is contained in:
parent
bb6c4642c2
commit
f870158a0c
1 changed files with 9 additions and 6 deletions
15
.github/workflows/build.yml
vendored
15
.github/workflows/build.yml
vendored
|
@ -1,4 +1,4 @@
|
||||||
name: Build Application
|
name: Build ZealOS ISOs
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
@ -33,21 +33,21 @@ jobs:
|
||||||
sudo apt-get -y update
|
sudo apt-get -y update
|
||||||
sudo apt-get -y install build-essential git xorriso qemu-system-x86
|
sudo apt-get -y install build-essential git xorriso qemu-system-x86
|
||||||
|
|
||||||
- name: Enable KVM group perms
|
- name: Enable KVM Group Perms
|
||||||
run: |
|
run: |
|
||||||
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
|
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 control --reload-rules
|
||||||
sudo udevadm trigger --name-match=kvm
|
sudo udevadm trigger --name-match=kvm
|
||||||
|
|
||||||
- name: Build ISOs
|
- name: Run ISOs Build Script
|
||||||
if: ${{ success() }}
|
if: ${{ success() }}
|
||||||
run: |
|
run: |
|
||||||
cd build
|
cd build
|
||||||
./build-iso.sh --headless
|
./build-iso.sh --headless
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
- name: Releasing latest
|
- name: Releasing Latest ISOs
|
||||||
if: ${{ success() }}
|
if: ${{ success() && github.event_name = 'push'}}
|
||||||
uses: "GutPuncher/action-automatic-releases@latest"
|
uses: "GutPuncher/action-automatic-releases@latest"
|
||||||
with:
|
with:
|
||||||
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
@ -55,5 +55,8 @@ jobs:
|
||||||
prerelease: false
|
prerelease: false
|
||||||
title: "Pre-Built ISOs [${{ github.sha }}]"
|
title: "Pre-Built ISOs [${{ github.sha }}]"
|
||||||
files: ./build/*.iso
|
files: ./build/*.iso
|
||||||
if-no-files-found: error
|
|
||||||
|
|
||||||
|
- name: OK
|
||||||
|
if: ${{ success() }}
|
||||||
|
run: |
|
||||||
|
echo "Build OK"
|
||||||
|
|
Loading…
Reference in a new issue