Update build.yml
This commit is contained in:
62
.github/workflows/build.yml
vendored
62
.github/workflows/build.yml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: Build Horizon OC
|
name: Build Horizon OC Zeus
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -15,40 +15,16 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
# -------------------------------------------------
|
# -------------------------------------------------
|
||||||
# Validate base tools
|
# Verify toolchain (no pacman!)
|
||||||
# -------------------------------------------------
|
# -------------------------------------------------
|
||||||
- name: Ensure required tools exist
|
- name: Verify environment
|
||||||
run: |
|
run: |
|
||||||
command -v make
|
echo "DEVKITPRO = $DEVKITPRO"
|
||||||
command -v python3
|
aarch64-none-elf-gcc --version
|
||||||
|
make --version
|
||||||
python3 --version
|
python3 --version
|
||||||
command -v zip
|
hactool --help >/dev/null
|
||||||
|
zip --version >/dev/null
|
||||||
# -------------------------------------------------
|
|
||||||
# Set devkitPro environment
|
|
||||||
# -------------------------------------------------
|
|
||||||
- name: Set devkitPro environment
|
|
||||||
run: |
|
|
||||||
echo "DEVKITPRO=/opt/devkitpro" >> $GITHUB_ENV
|
|
||||||
echo "DEVKITA64=/opt/devkitpro/devkitA64" >> $GITHUB_ENV
|
|
||||||
echo "DEVKITARM=/opt/devkitpro/devkitARM" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
# -------------------------------------------------
|
|
||||||
# FIX: devkitPro pacman 403 error
|
|
||||||
# -------------------------------------------------
|
|
||||||
- name: Initialize devkitPro pacman keyring
|
|
||||||
run: |
|
|
||||||
dkp-pacman-key --init
|
|
||||||
dkp-pacman-key --populate devkitpro
|
|
||||||
|
|
||||||
- name: Sync devkitPro and install dependencies
|
|
||||||
run: |
|
|
||||||
dkp-pacman -Sy --noconfirm
|
|
||||||
dkp-pacman -S --noconfirm --needed \
|
|
||||||
switch-dev \
|
|
||||||
libnx \
|
|
||||||
hactool \
|
|
||||||
general-tools
|
|
||||||
|
|
||||||
# -------------------------------------------------
|
# -------------------------------------------------
|
||||||
# Clone Atmosphere
|
# Clone Atmosphere
|
||||||
@@ -58,17 +34,17 @@ jobs:
|
|||||||
git clone https://github.com/Atmosphere-NX/Atmosphere.git atmosphere
|
git clone https://github.com/Atmosphere-NX/Atmosphere.git atmosphere
|
||||||
|
|
||||||
# -------------------------------------------------
|
# -------------------------------------------------
|
||||||
# Clone Horizon OC (develop branch)
|
# Clone Horizon OC (develop)
|
||||||
# -------------------------------------------------
|
# -------------------------------------------------
|
||||||
- name: Clone Horizon OC (develop)
|
- name: Clone Horizon OC
|
||||||
run: |
|
run: |
|
||||||
git clone -b develop --single-branch \
|
git clone -b develop --single-branch \
|
||||||
https://github.com/Horizon-OC/Horizon-OC.git horizon-oc
|
https://github.com/Horizon-OC/Horizon-OC.git horizon-oc
|
||||||
|
|
||||||
# -------------------------------------------------
|
# -------------------------------------------------
|
||||||
# Create build folder and copy Atmosphere
|
# Prepare build directory
|
||||||
# -------------------------------------------------
|
# -------------------------------------------------
|
||||||
- name: Prepare build directory
|
- name: Prepare build folder
|
||||||
working-directory: horizon-oc
|
working-directory: horizon-oc
|
||||||
run: |
|
run: |
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
@@ -85,9 +61,9 @@ jobs:
|
|||||||
build/stratosphere/loader/source/ldr_process_creation.cpp
|
build/stratosphere/loader/source/ldr_process_creation.cpp
|
||||||
|
|
||||||
# -------------------------------------------------
|
# -------------------------------------------------
|
||||||
# Build Horizon OC
|
# Build Horizon OC Zeus
|
||||||
# -------------------------------------------------
|
# -------------------------------------------------
|
||||||
- name: Build Horizon OC
|
- name: Build Horizon OC Zeus
|
||||||
working-directory: horizon-oc
|
working-directory: horizon-oc
|
||||||
run: |
|
run: |
|
||||||
chmod +x build.sh
|
chmod +x build.sh
|
||||||
@@ -96,16 +72,16 @@ jobs:
|
|||||||
# -------------------------------------------------
|
# -------------------------------------------------
|
||||||
# Zip dist folder
|
# Zip dist folder
|
||||||
# -------------------------------------------------
|
# -------------------------------------------------
|
||||||
- name: Package dist folder
|
- name: Package dist
|
||||||
working-directory: horizon-oc
|
working-directory: horizon-oc
|
||||||
run: |
|
run: |
|
||||||
zip -r horizon-oc-dist.zip dist
|
zip -r horizon-oc-zeus-dist.zip dist
|
||||||
|
|
||||||
# -------------------------------------------------
|
# -------------------------------------------------
|
||||||
# Upload zip artifact
|
# Upload artifact
|
||||||
# -------------------------------------------------
|
# -------------------------------------------------
|
||||||
- name: Upload build artifact
|
- name: Upload build artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: horizon-oc-dist
|
name: horizon-oc-zeus-dist
|
||||||
path: horizon-oc/horizon-oc-dist.zip
|
path: horizon-oc/horizon-oc-zeus-dist.zip
|
||||||
|
|||||||
Reference in New Issue
Block a user