Skip to content

application: Port Peanut-GB #1

application: Port Peanut-GB

application: Port Peanut-GB #1

Workflow file for this run

name: build
on: [push]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: true
- id: commit
uses: prompt/actions-commit-hash@v3
- name: Install dependencies
uses: amitie10g/[email protected]
with:
apt: build-essential nasm gcc-multilib g++-multilib cmake libgl-dev python3 python3-distutils xorriso dosfstools mtools unzip wget ffmpeg git recode grub-pc-bin grub-efi-ia32-bin
- name: Build towboot image
run: HHUOS_REDISTRIBUTABLE_BUILD=1 ./build.sh --target towboot --type Default
- name: Build limine image
run: HHUOS_REDISTRIBUTABLE_BUILD=1 ./build.sh --target limine --type Default
- name: Build grub image
run: HHUOS_REDISTRIBUTABLE_BUILD=1 ./build.sh --target grub --type Default
- name: Download licenses
run: mkdir -p license && cp LICENSE license/hhuOS.txt &&
wget -O license/Limine.txt https://raw.githubusercontent.com/limine-bootloader/limine/trunk/COPYING &&
wget -O license/FatFs.txt https://raw.githubusercontent.com/hhuOS/FatFs/master/LICENSE &&
wget -O license/doomgeneric.txt https://raw.githubusercontent.com/hhuOS/doomgeneric/master/LICENSE &&
wget -O license/quakegeneric.txt https://raw.githubusercontent.com/hhuOS/quakegeneric/master/LICENSE &&
wget -O license/tinygl.txt https://raw.githubusercontent.com/C-Chads/tinygl/main/LICENSE &&
head -n 30 src/application/peanut-gb/Peanut-GB/peanut_gb.h > license/peanut-gb.txt
wget -O license/2048-gb.txt https://raw.githubusercontent.com/Sanqui/2048-gb/master/LICENSE &&
wget -O license/5-mazes.txt https://raw.githubusercontent.com/godai78/5-Mazes/main/LICENSE
- name: Create artifact
run: mkdir -p hhuOS-${{ steps.commit.outputs.short }} && cp -r hhuOS-limine.iso hhuOS-towboot.img hdd0.img floppy0.img run.sh README.md license hhuOS-${{ steps.commit.outputs.short }}
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: hhuOS-${{ steps.commit.outputs.short }}
path: hhuOS-${{ steps.commit.outputs.short }}
- name: Create nightly
if: github.ref_name == 'master' || github.ref_name == 'development'
run: tar -czvf hhuOS-${{ github.ref_name }}.tar.gz hhuOS-limine.iso hhuOS-towboot.img hdd0.img floppy0.img run.sh README.md license
- name: Release nightly
if: github.ref_name == 'master' || github.ref_name == 'development'
uses: softprops/action-gh-release@v1
with:
prerelease: true
name: nightly-${{ github.ref_name }}
tag_name: nightly-${{ github.ref_name }}
files: hhuOS-${{ github.ref_name }}.tar.gz
fail_on_unmatched_files: true
env:
GITHUB_TOKEN: ${{ secrets.PUBLISH_TOKEN }}