35
.github/workflows/build.yml
vendored
35
.github/workflows/build.yml
vendored
@@ -12,7 +12,7 @@ jobs:
|
|||||||
|
|
||||||
# Minimal devkitA64 container
|
# Minimal devkitA64 container
|
||||||
container:
|
container:
|
||||||
image: devkitpro/devkita64:20251231
|
image: devkitpro/devkita64:20260219
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository and submodules # needed for hoc-clk
|
- name: Checkout repository and submodules # needed for hoc-clk
|
||||||
@@ -55,7 +55,7 @@ jobs:
|
|||||||
echo $GITHUB_SHA >> dist/.commit
|
echo $GITHUB_SHA >> dist/.commit
|
||||||
|
|
||||||
- name: Clone Libnx
|
- name: Clone Libnx
|
||||||
run: git clone https://github.com/switchbrew/libnx.git
|
run: git clone https://github.com/switchbrew/libnx.git --depth=1 --single-branch -b v4.12.0
|
||||||
|
|
||||||
- name: Clone Atmosphere
|
- name: Clone Atmosphere
|
||||||
run: git clone --depth=1 --single-branch https://github.com/Atmosphere-NX/Atmosphere.git atmosphere -b $(cat ams_ver.txt)
|
run: git clone --depth=1 --single-branch https://github.com/Atmosphere-NX/Atmosphere.git atmosphere -b $(cat ams_ver.txt)
|
||||||
@@ -70,20 +70,27 @@ jobs:
|
|||||||
cp -rf Source/Atmosphere/stratosphere/loader/source/* build/stratosphere/loader/source/
|
cp -rf Source/Atmosphere/stratosphere/loader/source/* build/stratosphere/loader/source/
|
||||||
|
|
||||||
- name: Cache ccache
|
- name: Cache ccache
|
||||||
uses: actions/cache@v5.0.3
|
uses: actions/cache@v5.0.5
|
||||||
with:
|
with:
|
||||||
path: /root/.cache/ccache
|
path: .ccache
|
||||||
key: ccache-${{ runner.os }}-devkitpro-ams-${{ hashFiles('ams_ver.txt') }} # last key was utter garbage, stick to ams versions,
|
key: ccache-${{ runner.os }}-devkitpro-ams-${{ hashFiles('ams_ver.txt') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
ccache-${{ runner.os }}-devkitpro-
|
ccache-${{ runner.os }}-devkitpro-
|
||||||
|
|
||||||
- name: Configure ccache
|
- name: Configure ccache
|
||||||
run: |
|
run: |
|
||||||
export CCACHE_DIR=/root/.cache/ccache
|
export CCACHE_DIR="$GITHUB_WORKSPACE/.ccache"
|
||||||
echo "CCACHE_DIR=/root/.cache/ccache" >> $GITHUB_ENV
|
export CCACHE_COMPILERCHECK=content
|
||||||
|
export CCACHE_NOHASHDIR=true
|
||||||
|
echo "CCACHE_DIR=$GITHUB_WORKSPACE/.ccache" >> $GITHUB_ENV
|
||||||
|
echo "CCACHE_BASEDIR=$GITHUB_WORKSPACE" >> $GITHUB_ENV
|
||||||
|
echo "CCACHE_COMPILERCHECK=content" >> $GITHUB_ENV
|
||||||
|
echo "CCACHE_NOHASHDIR=true" >> $GITHUB_ENV
|
||||||
ccache --set-config=max_size=10G
|
ccache --set-config=max_size=10G
|
||||||
ccache --set-config=compiler_check=content
|
ccache --set-config=compiler_check=content
|
||||||
ccache --zero-stats
|
ccache --set-config=hash_dir=false
|
||||||
|
ccache -s
|
||||||
|
ls -lah "$GITHUB_WORKSPACE/.ccache"
|
||||||
|
|
||||||
- name: Build Libnx
|
- name: Build Libnx
|
||||||
shell: bash
|
shell: bash
|
||||||
@@ -102,6 +109,7 @@ jobs:
|
|||||||
|
|
||||||
ROOT_DIR="$GITHUB_WORKSPACE/Source/hoc-clk"
|
ROOT_DIR="$GITHUB_WORKSPACE/Source/hoc-clk"
|
||||||
DIST_DIR="$ROOT_DIR/dist"
|
DIST_DIR="$ROOT_DIR/dist"
|
||||||
|
echo "DIST_DIR="$ROOT_DIR/dist"" >> $GITHUB_ENV
|
||||||
|
|
||||||
mkdir -p "$DIST_DIR"
|
mkdir -p "$DIST_DIR"
|
||||||
|
|
||||||
@@ -162,8 +170,11 @@ jobs:
|
|||||||
hactool -t kip1 out/nintendo_nx_arm64_armv8a/release/loader.kip --uncompress=hoc.kip
|
hactool -t kip1 out/nintendo_nx_arm64_armv8a/release/loader.kip --uncompress=hoc.kip
|
||||||
cp hoc.kip ../../../dist/atmosphere/kips/hoc.kip
|
cp hoc.kip ../../../dist/atmosphere/kips/hoc.kip
|
||||||
|
|
||||||
- name: ccache stats
|
- name: ccache stat
|
||||||
run: ccache --show-stats
|
run: |
|
||||||
|
ccache --show-stats
|
||||||
|
ccache -s
|
||||||
|
ccache --show-config
|
||||||
|
|
||||||
# -------------------------------------------------
|
# -------------------------------------------------
|
||||||
# Upload ZIP artifact
|
# Upload ZIP artifact
|
||||||
@@ -172,5 +183,5 @@ jobs:
|
|||||||
uses: actions/upload-artifact@v6
|
uses: actions/upload-artifact@v6
|
||||||
with:
|
with:
|
||||||
name: horizon-oc-zeus-dist
|
name: horizon-oc-zeus-dist
|
||||||
path: dist/
|
path: $DIST_DIR
|
||||||
compression-level: 3
|
compression-level: 6
|
||||||
|
|||||||
Reference in New Issue
Block a user