on master help sign in
add workflow for pushing nix flake artifacts to Cachix (#1721)

* add workflow for pushing nix flake artifacts to Cachix * add docs on using the cachix cache from nix * remove submodule clone from cachix workflow * remove flake check

commit227e0108e9b32be5f3ad7bf7343c821884b7d9ba authorMichael Davis <mcarsondavis@gmail.com> dateTue 1 Mar 2022, 20:12 (5 years ago) parenta76e948
2 files changed+30−1
.github/workflows/cachix.yml+24 book/src/install.md+6−1
.github/workflows/cachix.ymlnew file+24
@@ -0,0 +1,24 @@
1+# Publish the Nix flake outputs to Cachix
2+name: Cachix
3+on:
4+ push: master
5+
6+jobs:
7+ publish:
8+ name: Publish Flake
9+ runs-on: ubuntu-latest
10+ steps:
11+ - name: Checkout sources
12+ uses: actions/checkout@v2
13+
14+ - name: Install nix
15+ uses: cachix/install-nix-action@v16
16+
17+ - name: Authenticate with Cachix
18+ uses: cachix/cachix-action@v10
19+ with:
20+ name: helix
21+ authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
22+
23+ - name: Build nix flake
24+ run: nix build
book/src/install.md+6−1
@@ -19,7 +19,12 @@ brew install helix
1919
2020A [flake](https://nixos.wiki/wiki/Flakes) containing the package is available in
2121the project root. The flake can also be used to spin up a reproducible development
22−shell for working on Helix.
22+shell for working on Helix with `nix develop`.
23+
24+Flake outputs are cached for each push to master using
25+[Cachix](https://www.cachix.org/). With Cachix
26+[installed](https://docs.cachix.org/installation), `cachix use helix` will
27+configure Nix to use cached outputs when possible.
2328
2429### Arch Linux
2530