-
Notifications
You must be signed in to change notification settings - Fork 136
49 lines (44 loc) · 1.26 KB
/
build.yml
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
name: build holochain
on:
workflow_dispatch:
pull_request:
push:
jobs:
holochain-binaries:
strategy:
fail-fast: false
matrix:
platform:
- arch: macos-x86_64
runs-on: [macos-latest]
- arch: macos-arm64
runs-on: [self-hosted, macOS, ARM64]
- arch: linux-x86_64
runs-on: [ubuntu-latest]
cachixName:
- holochain-ci
runs-on: ${{ matrix.platform.runs-on }}
steps:
- name: "Displays Xcode current version"
run: |
sudo xcode-select -p || :
- name: Checkout code
uses: actions/checkout@v3
with:
lfs: false
- name: Install nix
uses: cachix/install-nix-action@v18
with:
extra_nix_config: |
experimental-features = flakes nix-command
if: "${{ matrix.platform.arch != 'macos-arm64' }}"
- name: Setup cachix
uses: cachix/cachix-action@v12
with:
name: "${{ matrix.cachixName }}"
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
if: "${{ matrix.platform.arch != 'macos-arm64' }}"
- name: Build derivations
env:
nix_attribute: "${{ matrix.nixAttribute }}"
run: nix build .#holochain -L --no-link