Update build.yml
This commit is contained in:
75
.github/workflows/build.yml
vendored
75
.github/workflows/build.yml
vendored
@@ -10,79 +10,64 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
# Use Atmosphère's CI container (devkitA64, devkitARM, hactool preinstalled)
|
|
||||||
container:
|
|
||||||
image: ghcr.io/atmosphere-nx/atmosphere-ci:latest
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# -------------------------------------------------
|
- name: Install dependencies
|
||||||
# Verify basic tools
|
run: |
|
||||||
# -------------------------------------------------
|
sudo apt-get update
|
||||||
- name: Verify environment
|
sudo apt-get install -y git make python3 zip wget tar
|
||||||
|
|
||||||
|
- name: Install devkitPro + toolchains
|
||||||
|
run: |
|
||||||
|
# Install devkitPro base
|
||||||
|
wget https://devkitpro.org/packages/devkitpro-pacman.install
|
||||||
|
sudo bash devkitpro-pacman.install
|
||||||
|
|
||||||
|
# Initialize keyring
|
||||||
|
sudo dkp-pacman-key --init
|
||||||
|
sudo dkp-pacman-key --populate devkitpro
|
||||||
|
|
||||||
|
# Sync and install packages
|
||||||
|
sudo dkp-pacman -Sy --noconfirm
|
||||||
|
sudo dkp-pacman -S --noconfirm \
|
||||||
|
devkitA64 devkitARM libnx switch-tools hactool
|
||||||
|
|
||||||
|
- name: Check toolchain
|
||||||
run: |
|
run: |
|
||||||
echo "DEVKITPRO = $DEVKITPRO"
|
|
||||||
aarch64-none-elf-gcc --version
|
aarch64-none-elf-gcc --version
|
||||||
arm-none-eabi-gcc --version
|
arm-none-eabi-gcc --version
|
||||||
make --version
|
|
||||||
python3 --version
|
python3 --version
|
||||||
|
make --version
|
||||||
hactool --help >/dev/null
|
hactool --help >/dev/null
|
||||||
zip --version >/dev/null
|
|
||||||
|
|
||||||
# -------------------------------------------------
|
|
||||||
# Clone Atmosphère
|
|
||||||
# -------------------------------------------------
|
|
||||||
- name: Clone Atmosphere
|
- name: Clone Atmosphere
|
||||||
run: |
|
run: 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)
|
|
||||||
# -------------------------------------------------
|
|
||||||
- name: Clone Horizon OC
|
- name: Clone Horizon OC
|
||||||
run: |
|
run: git clone -b develop --single-branch https://github.com/Horizon-OC/Horizon-OC.git horizon-oc
|
||||||
git clone -b develop --single-branch \
|
|
||||||
https://github.com/Horizon-OC/Horizon-OC.git horizon-oc
|
|
||||||
|
|
||||||
# -------------------------------------------------
|
|
||||||
# Prepare build folder
|
|
||||||
# -------------------------------------------------
|
|
||||||
- name: Prepare build folder
|
- name: Prepare build folder
|
||||||
working-directory: horizon-oc
|
working-directory: horizon-oc
|
||||||
run: |
|
run: |
|
||||||
mkdir -p build
|
mkdir build
|
||||||
cp -r ../atmosphere/. build/
|
cp -r ../atmosphere/. build/
|
||||||
|
|
||||||
# -------------------------------------------------
|
- name: Override loader source
|
||||||
# Override Atmosphère loader source
|
|
||||||
# -------------------------------------------------
|
|
||||||
- name: Override ldr_process_creation.cpp
|
|
||||||
working-directory: horizon-oc
|
working-directory: horizon-oc
|
||||||
run: |
|
run: |
|
||||||
cp -f \
|
cp -f Source/Atmosphere/stratosphere/loader/source/ldr_process_creation.cpp \
|
||||||
Source/Atmosphere/stratosphere/loader/source/ldr_process_creation.cpp \
|
|
||||||
build/stratosphere/loader/source/ldr_process_creation.cpp
|
build/stratosphere/loader/source/ldr_process_creation.cpp
|
||||||
|
|
||||||
# -------------------------------------------------
|
|
||||||
# Build Horizon OC Zeus
|
|
||||||
# -------------------------------------------------
|
|
||||||
- name: Build Horizon OC Zeus
|
- name: Build Horizon OC Zeus
|
||||||
working-directory: horizon-oc
|
working-directory: horizon-oc
|
||||||
run: |
|
run: |
|
||||||
chmod +x build.sh
|
chmod +x build.sh
|
||||||
./build.sh
|
./build.sh
|
||||||
|
|
||||||
# -------------------------------------------------
|
- name: Zip dist
|
||||||
# Package dist folder as ZIP
|
|
||||||
# -------------------------------------------------
|
|
||||||
- name: Package dist folder
|
|
||||||
working-directory: horizon-oc
|
working-directory: horizon-oc
|
||||||
run: |
|
run: zip -r horizon-oc-zeus-dist.zip dist
|
||||||
zip -r horizon-oc-zeus-dist.zip dist
|
|
||||||
|
|
||||||
# -------------------------------------------------
|
- name: Upload artifact
|
||||||
# Upload ZIP artifact
|
|
||||||
# -------------------------------------------------
|
|
||||||
- name: Upload build artifact
|
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: horizon-oc-zeus-dist
|
name: horizon-oc-zeus-dist
|
||||||
|
|||||||
Reference in New Issue
Block a user