From 6a5c3b786aa5ac4332c35c080e56766db041a795 Mon Sep 17 00:00:00 2001 From: tetetete-ctrl <227913315+tetetete-ctrl@users.noreply.github.com> Date: Sun, 31 May 2026 15:17:47 -0400 Subject: [PATCH 1/8] Update build.yml for container image and cloning options --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 237bd330..5f9fecd4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,7 +12,7 @@ jobs: # Minimal devkitA64 container container: - image: devkitpro/devkita64:20251231 + image: devkitpro/devkita64:20260219 steps: - name: Checkout repository and submodules # needed for hoc-clk @@ -55,7 +55,7 @@ jobs: echo $GITHUB_SHA >> dist/.commit - 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 - name: Clone Atmosphere run: git clone --depth=1 --single-branch https://github.com/Atmosphere-NX/Atmosphere.git atmosphere -b $(cat ams_ver.txt) @@ -70,7 +70,7 @@ jobs: cp -rf Source/Atmosphere/stratosphere/loader/source/* build/stratosphere/loader/source/ - name: Cache ccache - uses: actions/cache@v5.0.3 + uses: actions/cache@v5.0.5 with: path: /root/.cache/ccache key: ccache-${{ runner.os }}-devkitpro-ams-${{ hashFiles('ams_ver.txt') }} # last key was utter garbage, stick to ams versions, From f763fb70a88400cca4f36d097374d46657b8d352 Mon Sep 17 00:00:00 2001 From: tetetete-ctrl <227913315+tetetete-ctrl@users.noreply.github.com> Date: Sun, 31 May 2026 15:43:41 -0400 Subject: [PATCH 2/8] Attempt to fix ccache --- .github/workflows/build.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5f9fecd4..c6fb9ddf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -55,7 +55,7 @@ jobs: echo $GITHUB_SHA >> dist/.commit - name: Clone Libnx - run: git clone https://github.com/switchbrew/libnx.git --depth=1 --single-branch + run: git clone https://github.com/switchbrew/libnx.git --depth=1 --single-branch -b v4.12.0 - name: Clone Atmosphere run: git clone --depth=1 --single-branch https://github.com/Atmosphere-NX/Atmosphere.git atmosphere -b $(cat ams_ver.txt) @@ -79,11 +79,13 @@ jobs: - name: Configure ccache run: | - export CCACHE_DIR=/root/.cache/ccache - echo "CCACHE_DIR=/root/.cache/ccache" >> $GITHUB_ENV + export CCACHE_DIR="$HOME/.cache/ccache" + export CCACHE_BASEDIR="$GITHUB_WORKSPACE" + export CCACHE_COMPILERCHECK=content + export CCACHE_NOHASHDIR=true + echo "CCACHE_DIR=$HOME/.cache/ccache" >> $GITHUB_ENV ccache --set-config=max_size=10G ccache --set-config=compiler_check=content - ccache --zero-stats - name: Build Libnx shell: bash From 52b3b6b4691bfbd272373373f49e6f8fc005e4df Mon Sep 17 00:00:00 2001 From: tetetete-ctrl <227913315+tetetete-ctrl@users.noreply.github.com> Date: Sun, 31 May 2026 15:46:43 -0400 Subject: [PATCH 3/8] Fix ccache stats step name in build workflow --- .github/workflows/build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 237bd330..e87dd893 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -162,8 +162,10 @@ jobs: hactool -t kip1 out/nintendo_nx_arm64_armv8a/release/loader.kip --uncompress=hoc.kip cp hoc.kip ../../../dist/atmosphere/kips/hoc.kip - - name: ccache stats + - name: ccache stat run: ccache --show-stats + ccache -s + ccache --show-config # ------------------------------------------------- # Upload ZIP artifact From 62b3b71854f638aed2030ffa61bbc2ebe4f6372a Mon Sep 17 00:00:00 2001 From: tetetete-ctrl <227913315+tetetete-ctrl@users.noreply.github.com> Date: Sun, 31 May 2026 16:31:54 -0400 Subject: [PATCH 4/8] Update ccache directory path in build workflow --- .github/workflows/build.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4775f7c8..7a210640 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -79,13 +79,16 @@ jobs: - name: Configure ccache run: | - export CCACHE_DIR="$HOME/.cache/ccache" + export CCACHE_DIR="/github/home/.cache/ccache" export CCACHE_BASEDIR="$GITHUB_WORKSPACE" export CCACHE_COMPILERCHECK=content export CCACHE_NOHASHDIR=true - echo "CCACHE_DIR=$HOME/.cache/ccache" >> $GITHUB_ENV + echo "CCACHE_DIR=/github/home/.cache/ccache" >> $GITHUB_ENV ccache --set-config=max_size=10G ccache --set-config=compiler_check=content + ccache --set-config=hash_dir=false + ls -lah /github/home/.cache/ccache + ccache -s - name: Build Libnx shell: bash From 16ac50e7831d1a398bb70bf6da0ed86628eea1be Mon Sep 17 00:00:00 2001 From: tetetete-ctrl <227913315+tetetete-ctrl@users.noreply.github.com> Date: Sun, 31 May 2026 16:47:46 -0400 Subject: [PATCH 5/8] Perhaps the path of restore was wrong all along --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7a210640..afde4344 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -72,8 +72,8 @@ jobs: - name: Cache ccache uses: actions/cache@v5.0.5 with: - path: /root/.cache/ccache - key: ccache-${{ runner.os }}-devkitpro-ams-${{ hashFiles('ams_ver.txt') }} # last key was utter garbage, stick to ams versions, + path: /github/home/.cache/ccache + key: ccache-${{ runner.os }}-devkitpro-ams-${{ hashFiles('ams_ver.txt') }} restore-keys: | ccache-${{ runner.os }}-devkitpro- From a9adadd30e4fb5f793572743e27daeb197f3eb05 Mon Sep 17 00:00:00 2001 From: tetetete-ctrl <227913315+tetetete-ctrl@users.noreply.github.com> Date: Sun, 31 May 2026 17:11:39 -0400 Subject: [PATCH 6/8] Update build.yml --- .github/workflows/build.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index afde4344..fb35a36b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -72,23 +72,26 @@ jobs: - name: Cache ccache uses: actions/cache@v5.0.5 with: - path: /github/home/.cache/ccache + path: $HOME/.cache/ccache key: ccache-${{ runner.os }}-devkitpro-ams-${{ hashFiles('ams_ver.txt') }} restore-keys: | ccache-${{ runner.os }}-devkitpro- - name: Configure ccache run: | - export CCACHE_DIR="/github/home/.cache/ccache" + export CCACHE_DIR="$HOME/.cache/ccache" export CCACHE_BASEDIR="$GITHUB_WORKSPACE" export CCACHE_COMPILERCHECK=content export CCACHE_NOHASHDIR=true - echo "CCACHE_DIR=/github/home/.cache/ccache" >> $GITHUB_ENV + echo "CCACHE_DIR=/github/home/.cache/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=compiler_check=content ccache --set-config=hash_dir=false - ls -lah /github/home/.cache/ccache ccache -s + ls -lah $HOME/.cache/ccache - name: Build Libnx shell: bash @@ -168,7 +171,8 @@ jobs: cp hoc.kip ../../../dist/atmosphere/kips/hoc.kip - name: ccache stat - run: ccache --show-stats + run: | + ccache --show-stats ccache -s ccache --show-config From 21f698e99a7fa0e88a4eb0fd3b3ff9ea4e89fc63 Mon Sep 17 00:00:00 2001 From: tetetete-ctrl <227913315+tetetete-ctrl@users.noreply.github.com> Date: Mon, 15 Jun 2026 15:24:46 -0400 Subject: [PATCH 7/8] Change ccache path to use GITHUB_WORKSPACE Updated ccache configuration to use workspace directory. --- .github/workflows/build.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fb35a36b..17016d8a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -72,26 +72,25 @@ jobs: - name: Cache ccache uses: actions/cache@v5.0.5 with: - path: $HOME/.cache/ccache + path: .ccache key: ccache-${{ runner.os }}-devkitpro-ams-${{ hashFiles('ams_ver.txt') }} restore-keys: | ccache-${{ runner.os }}-devkitpro- - name: Configure ccache run: | - export CCACHE_DIR="$HOME/.cache/ccache" - export CCACHE_BASEDIR="$GITHUB_WORKSPACE" + export CCACHE_DIR="$GITHUB_WORKSPACE/.ccache" export CCACHE_COMPILERCHECK=content export CCACHE_NOHASHDIR=true - echo "CCACHE_DIR=/github/home/.cache/ccache" >> $GITHUB_ENV - echo "CCACHE_BASEDIR=$GITHUB_WORKSPACE" >> $GITHUB_ENV - echo "CCACHE_COMPILERCHECK=content" >> $GITHUB_ENV - echo "CCACHE_NOHASHDIR=true" >> $GITHUB_ENV + 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=compiler_check=content ccache --set-config=hash_dir=false ccache -s - ls -lah $HOME/.cache/ccache + ls -lah "$GITHUB_WORKSPACE/.ccache" - name: Build Libnx shell: bash From dc9a1c2f3f9c4f57bbf8bdbcae440f2f76c4db75 Mon Sep 17 00:00:00 2001 From: tetetete-ctrl <227913315+tetetete-ctrl@users.noreply.github.com> Date: Mon, 15 Jun 2026 17:47:36 -0400 Subject: [PATCH 8/8] Update build artifact path and compression level --- .github/workflows/build.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 17016d8a..626e98e8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -109,6 +109,7 @@ jobs: ROOT_DIR="$GITHUB_WORKSPACE/Source/hoc-clk" DIST_DIR="$ROOT_DIR/dist" + echo "DIST_DIR="$ROOT_DIR/dist"" >> $GITHUB_ENV mkdir -p "$DIST_DIR" @@ -182,5 +183,5 @@ jobs: uses: actions/upload-artifact@v6 with: name: horizon-oc-zeus-dist - path: dist/ - compression-level: 3 + path: $DIST_DIR + compression-level: 6