File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed
Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change 11name : Build Linux Bundle
22
33on :
4- workflow_dispatch : {}
54 push :
65 branches :
76 - master
7+ workflow_dispatch :
8+ inputs :
9+ push_to_cache :
10+ description : " Push to Nix Cache"
11+ required : false
12+ type : boolean
13+ default : false
814
915jobs :
1016 build :
@@ -14,11 +20,21 @@ jobs:
1420 steps :
1521 - uses : actions/checkout@v4
1622 - uses : DeterminateSystems/nix-installer-action@main
17- - uses : DeterminateSystems/magic-nix-cache-action@main
1823
1924 - name : Free disk space
2025 run : sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /opt/hostedtoolcache
2126
27+ - name : Build Nix Package
28+ run : nix build .nix --no-link --print-out-paths
29+
30+ - name : Push to Nix Cache
31+ if : github.ref == 'refs/heads/master' || inputs.push_to_cache == true
32+ env :
33+ NIX_CACHE_AUTH_TOKEN : ${{ secrets.NIX_CACHE_AUTH_TOKEN }}
34+ run : |
35+ nix run nixpkgs#cachix -- authtoken $NIX_CACHE_AUTH_TOKEN
36+ nix build .nix --no-link --print-out-paths | nix run nixpkgs#cachix -- push graphite
37+
2238 - name : Build Linux Bundle
2339 run : nix build .nix#graphite-bundle.tar.xz && cp ./result ./graphite-linux-bundle.tar.xz
2440
You can’t perform that action at this time.
0 commit comments