Bump cachix/install-nix-action from 22 to 25 #60
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: '🧑🏭' | |
on: [ push ] | |
jobs: | |
release: | |
if: startsWith(github.ref, 'refs/tags/v') == true | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v25 | |
with: | |
nix_path: "nixpkgs=channel:nixos-23.11" | |
- name: 'Activate Nix store cache' | |
uses: actions/cache@v3 | |
id: nix-cache | |
with: | |
path: "/tmp/nixcache" | |
key: "nix-store-${{ hashFiles(format('{0}/tools/build.sh', github.workspace)) }}" | |
- name: "Import Nix store cache" | |
if: "steps.nix-cache.outputs.cache-hit == 'true'" | |
run: nix-store --import < /tmp/nixcache | |
- run: | | |
make check | |
- run: | | |
make release | |
- name: "Export Nix store cache" | |
if: > | |
( github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' ) | |
&& steps.nix-cache.outputs.cache-hit != 'true' | |
run: nix-store --export $(find /nix/store -maxdepth 1 -name '*-*') > /tmp/nixcache | |
- uses: softprops/action-gh-release@v1 | |
with: | |
body: 'Built at commit: ${{ github.sha }}' | |
files: 'out/*' |