File tree 2 files changed +19
-0
lines changed
2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 8
8
matrix :
9
9
os : [ubuntu-latest, macos-latest]
10
10
runs-on : ${{ matrix.os }}
11
+ env :
12
+ CACHIX_NAME : nix-ci
11
13
steps :
12
14
- uses : actions/checkout@v2
13
15
with :
14
16
fetch-depth : 0
15
17
- uses : cachix/install-nix-action@v12
18
+ - uses : cachix/cachix-action@v8
19
+ with :
20
+ name : ' ${{ env.CACHIX_NAME }}'
21
+ signingKey : ' ${{ secrets.CACHIX_SIGNING_KEY }}'
16
22
# - run: nix flake check
17
23
- run : nix-build -A checks.$(if [[ `uname` = Linux ]]; then echo x86_64-linux; else echo x86_64-darwin; fi)
24
+ - run : scripts/prepare-installer-for-github-actions
25
+ - uses : actions/upload-artifact@v2
26
+ with :
27
+ name : installer.sh
28
+ path : installer.sh
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ installerHash=$( nix-instantiate -A outputs.hydraJobs.installerScript.outPath --eval | cut -b13-44)
4
+
5
+ cat << EOF > installer.sh
6
+ curl -sfL https://$CACHIX_NAME .cachix.org/serve/$installerHash /install \
7
+ | sh --tarball-url https://$CACHIX_NAME .cachix.org/serve "\$ @"
8
+ EOF
You can’t perform that action at this time.
0 commit comments