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 4242 install_url : https://releases.nixos.org/nix/nix-2.31.2/install
4343 extra_nix_config : |
4444 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=
4646 ${{ inputs.push-to-cache == 'true' && 'post-build-hook = /etc/nix/upload-to-cache.sh' || '' }}
Original file line number Diff line number Diff line change 3535 steps :
3636 - name : Checkout Repo
3737 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' }}
3946 uses : ./.github/actions/nix-install-self-hosted
4047 - name : nix build
4148 shell : bash
5562 steps :
5663 - name : Checkout Repo
5764 uses : actions/checkout@v4
58- - name : Build Nix Package
65+ - name : Install nix
5966 uses : ./.github/actions/nix-install-self-hosted
6067 - name : nix build
6168 shell : bash
Original file line number Diff line number Diff line change 2929 name : Generate Nix Matrix
3030 run : |
3131 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 33 nixConfig = {
44 extra-substituters = [ "https://nix-postgres-artifacts.s3.amazonaws.com" ] ;
55 extra-trusted-public-keys = [
6- "nix-postgres-artifacts:dGZlQOvKcNEjvT7QEAJbcV6b6uk7VF/hWMjhYleiaLI=% "
6+ "nix-postgres-artifacts:dGZlQOvKcNEjvT7QEAJbcV6b6uk7VF/hWMjhYleiaLI="
77 ] ;
88 } ;
99 inputs = {
You can’t perform that action at this time.
0 commit comments