From d00bf32aa689336425aef250e7833361606907cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20de=20Kok?= Date: Mon, 28 Sep 2026 11:56:14 +0000 Subject: [PATCH] ci: build and push to cache and Darwin --- .github/workflows/update_cache.yaml | 21 +++++++++++++++++++++ Cargo.lock | 2 +- flake.nix | 2 +- 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update_cache.yaml b/.github/workflows/update_cache.yaml index 693601ec..c954cdb6 100644 --- a/.github/workflows/update_cache.yaml +++ b/.github/workflows/update_cache.yaml @@ -43,3 +43,24 @@ jobs: - name: Build the outputs to be cached. run: nix build -L .#forCache + + build-darwin: + permissions: + contents: read + name: Update Nix builder cache (aarch64-darwin) + runs-on: macos-26 + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - uses: DeterminateSystems/nix-installer-action@3138316df39ed29be04236d7ffc686fa525866aa # v23 + with: + extra-conf: | + sandbox = relaxed + - uses: cachix/cachix-action@1eb2ef646ac0255473d23a5907ad7b04ce94065c # v17 + with: + name: huggingface + authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" + - name: Nix info + run: nix-shell -p nix-info --run "nix-info -m" + + - name: Build the outputs to be cached. + run: nix build -L .#forCache diff --git a/Cargo.lock b/Cargo.lock index 7cc80f36..dd9ffae1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1871,7 +1871,7 @@ version = "7.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5f98efec8807c63c752b5bd61f862c165c115b0a35685bdcfd9238c7aeb592b7" dependencies = [ - "cfg-if 1.0.4", + "cfg-if", "unicode-width 0.1.14", ] diff --git a/flake.nix b/flake.nix index e27d14ab..d96e761a 100644 --- a/flake.nix +++ b/flake.nix @@ -231,7 +231,7 @@ builtins.filter (buildSet: buildSet.buildConfig.bundleBuild or false) buildSets ); - forCacheNonBundle = mkForCache ( + forCacheNonBundle = mkForCache pkgs ( builtins.filter (buildSet: !(buildSet.buildConfig.bundleBuild or false)) buildSets );