From 2000c514a4219d7b40e4f0185d35c56b29355c27 Mon Sep 17 00:00:00 2001 From: tequ Date: Fri, 28 Nov 2025 14:18:47 +0900 Subject: [PATCH] . --- .github/workflows/xahau-ga-nix.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/xahau-ga-nix.yml b/.github/workflows/xahau-ga-nix.yml index 38c618ac2..af3a5ff4a 100644 --- a/.github/workflows/xahau-ga-nix.yml +++ b/.github/workflows/xahau-ga-nix.yml @@ -190,7 +190,7 @@ jobs: apt-get install -y python3 python-is-python3 pipx cmake ninja-build ccache perl libsqlite3-dev build: - needs: matrix-setup + needs: [matrix-setup, apt-cache] runs-on: [self-hosted, generic, 20.04] container: image: ubuntu:24.04 @@ -199,7 +199,7 @@ jobs: - /home/runner/.ccache-main:/github/home/.ccache-main - /home/runner/.ccache-current:/github/home/.ccache-current # apt cache as readonly - - /home/runner/.apt-cache:/var/cache/apt:ro + - /home/runner/.apt-cache:/apt-cache-ro:ro defaults: run: shell: bash @@ -217,6 +217,17 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Seed apt cache + run: | + # prepare apt cache directory + mkdir -p /var/cache/apt/archives + + # copy existing .deb files from apt cache + if [ -d /apt-cache-ro/archives ]; then + # don't overwrite if already exists + rsync -a /apt-cache-ro/archives/ /var/cache/apt/archives/ || true + fi + - name: Install build dependencies run: | # install dependencies from apt cache