chore(github): migrate nix workflow to use nix-installer & magic-nix-cache

Summary: The Determinate Systems Nix installer is fast and importantly includes
Flake support by default on new installs.

Magic Nix Cache will help ease the build time a little by making sure things
like downloads from crates.io remain cached between builds; in the future if we
ever need to add any custom builds to the Nix expression it will come really in
handy. But in my experience I don't think it should slow down much, and might
speed some things up a whole lot.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
Change-Id: I56e1592cbaa6c7a43b5bd57972b98ada
This commit is contained in:
Austin Seipp 2023-07-12 09:01:40 -05:00 committed by Martin von Zweigbergk
parent 3e23155b10
commit c780e6bc1f

View file

@ -22,8 +22,6 @@ jobs:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
with:
fetch-depth: 0
- uses: cachix/install-nix-action@6ed004b9ccb68dbc28e7c85bee15fa93dbd214ac
with:
extra_nix_config: |
experimental-features = nix-command flakes
- uses: DeterminateSystems/nix-installer-action@65d7c888b2778e8cf30a07a88422ccb23499bfb8
- uses: DeterminateSystems/magic-nix-cache-action@5cc3a5e24b688cf7e0ea986ab07a9d3d32c34a95
- run: nix ${{ matrix.mode }} --print-build-logs --show-trace