From 6185afef92cda34416d4ad97251b2e4ad8141cbb Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Fri, 13 Jun 2025 15:24:01 -0400 Subject: [PATCH] Run onnamespace, use their cache --- .github/workflows/build.yml | 5 +++++ .github/workflows/ci.yml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c3ae8fce1..24f0c30c1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -135,6 +135,11 @@ jobs: FLAKE_REGRESSION_GLOB: ${{ matrix.glob }} NIX_CONFIG: ${{ matrix.nix_config }} run: | + set -x + if [ ! -z "${NSC_CACHE_PATH:-}" ]; then + mkdir -p "${NSC_CACHE_PATH}/nix/xdg-cache" + export XDG_CACHE_HOME="${NSC_CACHE_PATH}/nix/xdg-cache" + fi nix build -L --out-link ./new-nix export PATH=$(pwd)/new-nix/bin:$PATH diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 82f54ddf5..832228296 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,7 +35,7 @@ jobs: uses: ./.github/workflows/build.yml with: system: x86_64-linux - runner: UbuntuLatest32Cores128G + runner: namespace-profile-linuxamd32c64g-cache runner_small: ubuntu-latest run_tests: true run_vm_tests: true