Skip to content

Commit

Permalink
Merge pull request #11 from holochain/versions-and-apps
Browse files Browse the repository at this point in the history
Add versions and apps
  • Loading branch information
ThetaSinner authored Jun 5, 2024
2 parents 4eb17c5 + 05f7ee6 commit 16a5629
Show file tree
Hide file tree
Showing 4 changed files with 98 additions and 117 deletions.
35 changes: 28 additions & 7 deletions .github/workflows/build-and-cache.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,33 @@ concurrency:
cancel-in-progress: true

jobs:
nix-check:
runs-on: ubuntu-latest

steps:
- name: Check out source code
uses: actions/checkout@v4

- name: Install nix
uses: cachix/install-nix-action@v27
with:
install_url: https://releases.nixos.org/nix/nix-2.22.1/install

- name: Check Nix formatting
run: nix fmt . -- --check

- name: Check Nix flake
run: nix flake check --all-systems

build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, macos-13]
package: [holochain, lair-keystore, hc-launch, hc-scaffold]
packages:
- [holochain, hc, hc-run-local-services, hc-sandbox, hcterm]
- [lair-keystore]
- [hc-launch]
- [hc-scaffold]
fail-fast: false

runs-on: ${{ matrix.os }}
Expand All @@ -24,17 +46,16 @@ jobs:
uses: actions/checkout@v4

- name: Install nix
uses: cachix/install-nix-action@v25
uses: cachix/install-nix-action@v27
with:
install_url: https://releases.nixos.org/nix/nix-2.18.0/install
install_url: https://releases.nixos.org/nix/nix-2.22.1/install

- name: Use GitHub cache
uses: DeterminateSystems/magic-nix-cache-action@main

- name: Build nix package
run: nix build -L .#${{ matrix.package }}

- run: result/bin/${{ matrix.package }} --version
- name: Run nix app
run: |
echo '${{ toJSON(matrix.packages) }}' | jq -r '.[]' | xargs -I% nix run .#% -- --version
# - name: Setup tmate session
# if: failure()
Expand Down
68 changes: 0 additions & 68 deletions build-and-cache.yaml

This file was deleted.

44 changes: 22 additions & 22 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 16a5629

Please sign in to comment.