Skip to content

Commit c1b0734

Browse files
jfrocheyvan-sraka
authored andcommitted
refactor(ci): standardize nix installation and disable cache push by default
- Replace DeterminateSystems/nix-installer-action with custom nix-install-ephemeral action across all workflows - Change default push-to-cache from 'true' to 'false' to prevent unnecessary nix/aws configurations - Explicitly enable push-to-cache only for nix-build and nix-eval workflows where caching is beneficial
1 parent 8c4c64a commit c1b0734

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/nix-build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ jobs:
3838
- name: Install nix (ephemeral)
3939
if: ${{ matrix.runs_on.group != 'self-hosted-runners-nix' }}
4040
uses: ./.github/actions/nix-install-ephemeral
41+
with:
42+
push-to-cache: 'true'
4143
env:
4244
DEV_AWS_ROLE: ${{ secrets.DEV_AWS_ROLE }}
4345
NIX_SIGN_SECRET_KEY: ${{ secrets.NIX_SIGN_SECRET_KEY }}
@@ -84,6 +86,8 @@ jobs:
8486
uses: actions/checkout@v4
8587
- name: Install nix
8688
uses: ./.github/actions/nix-install-ephemeral
89+
with:
90+
push-to-cache: 'true'
8791
env:
8892
DEV_AWS_ROLE: ${{ secrets.DEV_AWS_ROLE }}
8993
NIX_SIGN_SECRET_KEY: ${{ secrets.NIX_SIGN_SECRET_KEY }}

.github/workflows/nix-eval.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222
uses: actions/checkout@v4
2323
- name: Install nix
2424
uses: ./.github/actions/nix-install-ephemeral
25+
with:
26+
push-to-cache: 'true'
2527
env:
2628
DEV_AWS_ROLE: ${{ secrets.DEV_AWS_ROLE }}
2729
NIX_SIGN_SECRET_KEY: ${{ secrets.NIX_SIGN_SECRET_KEY }}

0 commit comments

Comments
 (0)