Skip to content

Commit

Permalink
feat: add flake(holochain + lair) and build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jost-s committed May 21, 2024
1 parent c16825e commit a70f689
Show file tree
Hide file tree
Showing 4 changed files with 441 additions and 0 deletions.
68 changes: 68 additions & 0 deletions .github/workflows/build-and-cache.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: build and cache

on: push

concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true

jobs:
build-holochain:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, macos-13]
fail-fast: false

runs-on: ${{ matrix.os }}

steps:
- name: Print platform information
run: uname -ms

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

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

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

- name: Build nix package
run: nix build -L .#holochain

- name: Setup tmate session
if: failure()
uses: mxschmitt/action-tmate@v3

build-lair:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, macos-13]
fail-fast: false

runs-on: ${{ matrix.os }}

steps:
- name: Print platform information
run: uname -ms

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

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

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

- name: Build nix package
run: nix build -L .#lair-keystore

- name: Setup tmate session
if: failure()
uses: mxschmitt/action-tmate@v3
68 changes: 68 additions & 0 deletions build-and-cache.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: build and cache

on: push

concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true

jobs:
build-holochain:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, macos-13]
fail-fast: false

runs-on: ${{ matrix.os }}

steps:
- name: Print platform information
run: uname -ms

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

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

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

- name: Build nix package
run: nix build -L .#holochain

- name: Setup tmate session
if: failure()
uses: mxschmitt/action-tmate@v3

build-lair:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, macos-13]
fail-fast: false

runs-on: ${{ matrix.os }}

steps:
- name: Print platform information
run: uname -ms

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

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

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

- name: Build nix package
run: nix build -L .#lair-keystore

- name: Setup tmate session
if: failure()
uses: mxschmitt/action-tmate@v3
168 changes: 168 additions & 0 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 a70f689

Please sign in to comment.