Skip to content

Commit 8be8092

Browse files
committed
fix: try cachix installer with set nix version
1 parent 68209e3 commit 8be8092

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed

.github/workflows/nix-build.yml

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,21 +62,36 @@ jobs:
6262
/nix/var/nix/profiles/default/bin/nix copy --to 's3://nix-postgres-artifacts?secret-key=/etc/nix/nix-secret-key' $OUT_PATHS
6363
EOF
6464
sudo chmod +x /etc/nix/upload-to-cache.sh
65+
# - name: Install nix
66+
# uses: DeterminateSystems/nix-installer-action@main
67+
# if: ${{ github.secret_source == 'Actions' }}
68+
# with:
69+
# extra-conf: |
70+
# substituters = https://cache.nixos.org https://nix-postgres-artifacts.s3.amazonaws.com
71+
# trusted-public-keys = nix-postgres-artifacts:dGZlQOvKcNEjvT7QEAJbcV6b6uk7VF/hWMjhYleiaLI=% cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
72+
# post-build-hook = /etc/nix/upload-to-cache.sh
73+
# - name: Install nix
74+
# uses: DeterminateSystems/nix-installer-action@main
75+
# if: ${{ github.secret_source == 'None' }}
76+
# with:
77+
# extra-conf: |
78+
# substituters = https://cache.nixos.org https://nix-postgres-artifacts.s3.amazonaws.com
79+
# trusted-public-keys = nix-postgres-artifacts:dGZlQOvKcNEjvT7QEAJbcV6b6uk7VF/hWMjhYleiaLI=% cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
6580
- name: Install nix
66-
uses: DeterminateSystems/nix-installer-action@main
81+
uses: cachix/install-nix-action@v27
6782
if: ${{ github.secret_source == 'Actions' }}
6883
with:
69-
nix_version: 2.24.9
70-
extra-conf: |
84+
install_url: https://releases.nixos.org/nix/nix-2.24.9/install
85+
extra_nix_config: |
7186
substituters = https://cache.nixos.org https://nix-postgres-artifacts.s3.amazonaws.com
7287
trusted-public-keys = nix-postgres-artifacts:dGZlQOvKcNEjvT7QEAJbcV6b6uk7VF/hWMjhYleiaLI=% cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
7388
post-build-hook = /etc/nix/upload-to-cache.sh
7489
- name: Install nix
75-
uses: DeterminateSystems/nix-installer-action@main
90+
uses: cachix/install-nix-action@v27
7691
if: ${{ github.secret_source == 'None' }}
7792
with:
78-
nix_version: 2.24.9
79-
extra-conf: |
93+
install_url: https://releases.nixos.org/nix/nix-2.24.9/install
94+
extra_nix_config: |
8095
substituters = https://cache.nixos.org https://nix-postgres-artifacts.s3.amazonaws.com
8196
trusted-public-keys = nix-postgres-artifacts:dGZlQOvKcNEjvT7QEAJbcV6b6uk7VF/hWMjhYleiaLI=% cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
8297
- name: Aggressive disk cleanup for DuckDB build

0 commit comments

Comments
 (0)