-
Notifications
You must be signed in to change notification settings - Fork 1
68 lines (50 loc) · 1.54 KB
/
build-and-cache.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
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