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