@@ -7,11 +7,33 @@ concurrency:
77 cancel-in-progress : true
88
99jobs :
10+ nix-check :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - name : Check out source code
15+ uses : actions/checkout@v4
16+
17+ - name : Install nix
18+ uses : cachix/install-nix-action@v27
19+ with :
20+ install_url : https://releases.nixos.org/nix/nix-2.22.1/install
21+
22+ - name : Check Nix formatting
23+ run : nix fmt . -- --check
24+
25+ - name : Check Nix flake
26+ run : nix flake check --all-systems
27+
1028 build :
1129 strategy :
1230 matrix :
1331 os : [ubuntu-latest, macos-latest, macos-13]
14- package : [holochain, lair-keystore, hc-launch, hc-scaffold]
32+ packages :
33+ - [holochain, hc, hc-run-local-services, hc-sandbox, hcterm]
34+ - [lair-keystore]
35+ - [hc-launch]
36+ - [hc-scaffold]
1537 fail-fast : false
1638
1739 runs-on : ${{ matrix.os }}
@@ -24,17 +46,16 @@ jobs:
2446 uses : actions/checkout@v4
2547
2648 - name : Install nix
27- uses : cachix/install-nix-action@v25
49+ uses : cachix/install-nix-action@v27
2850 with :
29- install_url : https://releases.nixos.org/nix/nix-2.18.0 /install
51+ install_url : https://releases.nixos.org/nix/nix-2.22.1 /install
3052
3153 - name : Use GitHub cache
3254 uses : DeterminateSystems/magic-nix-cache-action@main
3355
34- - name : Build nix package
35- run : nix build -L .#${{ matrix.package }}
36-
37- - run : result/bin/${{ matrix.package }} --version
56+ - name : Run nix app
57+ run : |
58+ echo '${{ toJSON(matrix.packages) }}' | jq -r '.[]' | xargs -I% nix run .#% -- --version
3859
3960 # - name: Setup tmate session
4061 # if: failure()
0 commit comments