From c1fa24d9024a3894095e7b055a20ef411445e38f Mon Sep 17 00:00:00 2001 From: Luke Curley Date: Fri, 30 Oct 2026 13:31:44 -0700 Subject: [PATCH] ci: backport the nix action to release so Release Py can run there `workflow_run` runs main's release-py.yml against the release tag's checkout, and main's copy uses ./.github/actions/nix, which release lacked. The action only accepts the flake's own nixConfig, so on release it substitutes from the Cachix cache release's flake names. Co-Authored-By: Claude Opus 5.5 --- .github/actions/nix/action.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/actions/nix/action.yml diff --git a/.github/actions/nix/action.yml b/.github/actions/nix/action.yml new file mode 100644 index 00000000000..3c920094001 --- /dev/null +++ b/.github/actions/nix/action.yml @@ -0,0 +1,16 @@ +name: Install Nix +description: Install Nix and trust the flake's own nixConfig, which names the nix.moq.dev cache. + +runs: + using: composite + steps: + # Nix ignores a flake's `nixConfig` unless told to accept it, and would then + # rebuild from source everything nixpkgs doesn't serve: ~12 minutes of + # uniffi-bindgen-go alone in every job that enters the dev shell. Accepting + # it keeps flake.nix the only place that names the cache and its key. The + # flake is this checkout, which these jobs already run as code. + - uses: DeterminateSystems/nix-installer-action@1d87d45818068401a10cf16bdc5f00b24994a83f # main + with: + determinate: false + extra-conf: | + accept-flake-config = true