Skip to content

Commit 16a5629

Browse files
authored
Merge pull request #11 from holochain/versions-and-apps
Add versions and apps
2 parents 4eb17c5 + 05f7ee6 commit 16a5629

4 files changed

Lines changed: 98 additions & 117 deletions

File tree

.github/workflows/build-and-cache.yaml

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,33 @@ concurrency:
77
cancel-in-progress: true
88

99
jobs:
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()

build-and-cache.yaml

Lines changed: 0 additions & 68 deletions
This file was deleted.

flake.lock

Lines changed: 22 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)