mirror of
https://github.com/minexew/Shrine.git
synced 2026-05-26 17:09:46 +00:00
Add GitHub Actions CI
This commit is contained in:
Executable
+25
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
rm -rf .build
|
||||
mkdir .build
|
||||
cd .build
|
||||
|
||||
BIN=templeoskernel-pre6
|
||||
curl -O https://shrine.systems/download/templeos-loader/$BIN
|
||||
chmod +x $BIN
|
||||
|
||||
mkdir Shrine.out
|
||||
|
||||
# workaround fs bug in HolyCRT (fails to create necessary directories)
|
||||
mkdir -p Shrine.out/Compiler Shrine.out/Kernel
|
||||
|
||||
env STARTOS=BuildShrine ./$BIN --drive=C,..,Shrine.out
|
||||
|
||||
ISO_FILE=Shrine.out/Tmp/ShrineDist.ISO.C
|
||||
ISO_SIZE=$(wc -c <$ISO_FILE)
|
||||
MIN_SIZE=100000
|
||||
if [ $ISO_SIZE -le $MIN_SIZE ]; then
|
||||
echo error: $ISO_FILE is $ISO_SIZE bytes in size, less than the expected minimum of $MIN_SIZE >&2
|
||||
exit 1
|
||||
fi
|
||||
@@ -0,0 +1,20 @@
|
||||
name: Build ISO
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
|
||||
- name: Build ISO
|
||||
run: .github/build.sh
|
||||
|
||||
- name: Upload ISO
|
||||
uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: ShrineDist.ISO
|
||||
path: .build/Shrine.out/Tmp/ShrineDist.ISO.C
|
||||
+1
-1
@@ -26,7 +26,7 @@ if (DrvIsWritable)
|
||||
DirMk("/Tmp"); //Good to have a Tmp
|
||||
|
||||
DirMk("/Home");
|
||||
Copy("/MakeHome.HC.Z", "/Home/MakeHome.HC.Z");
|
||||
|
||||
DirMk("/0000Boot");
|
||||
#include "/Adam/Opt/Boot/MakeBoot"
|
||||
#include "/Misc/DoDistro"
|
||||
|
||||
Reference in New Issue
Block a user