File tree Expand file tree Collapse file tree 4 files changed +12
-5
lines changed
actions/nix-install-ephemeral Expand file tree Collapse file tree 4 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 42
42
install_url : https://releases.nixos.org/nix/nix-2.31.2/install
43
43
extra_nix_config : |
44
44
substituters = https://cache.nixos.org https://nix-postgres-artifacts.s3.amazonaws.com
45
- trusted-public-keys = nix-postgres-artifacts:dGZlQOvKcNEjvT7QEAJbcV6b6uk7VF/hWMjhYleiaLI=% cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
45
+ trusted-public-keys = nix-postgres-artifacts:dGZlQOvKcNEjvT7QEAJbcV6b6uk7VF/hWMjhYleiaLI= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
46
46
${{ inputs.push-to-cache == 'true' && 'post-build-hook = /etc/nix/upload-to-cache.sh' || '' }}
Original file line number Diff line number Diff line change 35
35
steps :
36
36
- name : Checkout Repo
37
37
uses : actions/checkout@v4
38
- - name : Build Nix Package
38
+ - name : Install nix (ephemeral)
39
+ if : ${{ matrix.runs_on.group != 'self-hosted-runners-nix' }}
40
+ uses : ./.github/actions/nix-install-ephemeral
41
+ env :
42
+ DEV_AWS_ROLE : ${{ secrets.DEV_AWS_ROLE }}
43
+ NIX_SIGN_SECRET_KEY : ${{ secrets.NIX_SIGN_SECRET_KEY }}
44
+ - name : Install nix (self-hosted)
45
+ if : ${{ matrix.runs_on.group == 'self-hosted-runners-nix' }}
39
46
uses : ./.github/actions/nix-install-self-hosted
40
47
- name : nix build
41
48
shell : bash
55
62
steps :
56
63
- name : Checkout Repo
57
64
uses : actions/checkout@v4
58
- - name : Build Nix Package
65
+ - name : Install nix
59
66
uses : ./.github/actions/nix-install-self-hosted
60
67
- name : nix build
61
68
shell : bash
Original file line number Diff line number Diff line change 29
29
name : Generate Nix Matrix
30
30
run : |
31
31
set -Eeu
32
- echo matrix="$(nix run .\#github-matrix checks legacyPackages)" >> "$GITHUB_OUTPUT"
32
+ echo matrix="$(nix run --accept-flake-config .\#github-matrix checks legacyPackages)" >> "$GITHUB_OUTPUT"
Original file line number Diff line number Diff line change 3
3
nixConfig = {
4
4
extra-substituters = [ "https://nix-postgres-artifacts.s3.amazonaws.com" ] ;
5
5
extra-trusted-public-keys = [
6
- "nix-postgres-artifacts:dGZlQOvKcNEjvT7QEAJbcV6b6uk7VF/hWMjhYleiaLI=% "
6
+ "nix-postgres-artifacts:dGZlQOvKcNEjvT7QEAJbcV6b6uk7VF/hWMjhYleiaLI="
7
7
] ;
8
8
} ;
9
9
inputs = {
You can’t perform that action at this time.
0 commit comments