-
Notifications
You must be signed in to change notification settings - Fork 0
153 lines (122 loc) · 3.96 KB
/
build.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
name: Build
on:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: ${{ github.ref_name }}
cancel-in-progress: true
jobs:
build-holochain:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Maximize build space
uses: AdityaGarg8/remove-unwanted-software@v2
with:
remove-dotnet: 'true'
remove-android: 'true'
remove-codeql: 'true'
remove-docker-images: 'true'
- name: Install nix
uses: cachix/install-nix-action@v26
with:
install_url: https://releases.nixos.org/nix/nix-2.20.4/install
- name: Build for x86_64-unknown-linux-gnu
run: nix build .#holochain_x86_64-linux
- name: Build for aarch64-unknown-linux-gnu
run: nix build .#holochain_aarch64-linux
- name: Build for x86_64-pc-windows-gnu
run: nix build .#holochain_x86_64-windows
build-holochain-apple:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Install nix
uses: cachix/install-nix-action@v26
with:
install_url: https://releases.nixos.org/nix/nix-2.20.4/install
- name: Build for aarch64-apple-darwin
run: nix build .#holochain_x86_64-apple
build-holochain-legacy-apple:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Install nix
uses: cachix/install-nix-action@v26
with:
install_url: https://releases.nixos.org/nix/nix-2.20.4/install
- name: Build for x86_64-apple-darwin
run: nix build .#holochain_x86_64-apple
build-lair-keystore:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Maximize build space
uses: AdityaGarg8/remove-unwanted-software@v2
with:
remove-dotnet: 'true'
remove-android: 'true'
remove-codeql: 'true'
remove-docker-images: 'true'
- name: Install nix
uses: cachix/install-nix-action@v26
with:
install_url: https://releases.nixos.org/nix/nix-2.20.4/install
- name: Build for x86_64-unknown-linux-gnu
run: nix build .#lair_keystore_x86_64-linux
- name: Build for aarch64-unknown-linux-gnu
run: nix build .#lair_keystore_aarch64-linux
- name: Build for x86_64-pc-windows-gnu
run: nix build .#lair_keystore_x86_64-windows
build-lair-keystore-apple:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Install nix
uses: cachix/install-nix-action@v26
with:
install_url: https://releases.nixos.org/nix/nix-2.20.4/install
- name: Build for aarch64-apple-darwin
run: nix build .#lair_keystore_aarch64-apple
build-lair-keystore-legacy-apple:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- name: Install nix
uses: cachix/install-nix-action@v26
with:
install_url: https://releases.nixos.org/nix/nix-2.20.4/install
- name: Build for x86_64-apple-darwin
run: nix build .#lair_keystore_x86_64-apple
bundle-x86-64-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install nix
uses: cachix/install-nix-action@v26
with:
install_url: https://releases.nixos.org/nix/nix-2.20.4/install
- name: Build Lair Keystore
run: |
nix bundle .#holonix_lair_keystore
./lair-keystore --version
- name: Build Holochain
run: |
nix bundle .#holonix_holochain
./holochain --version
- name: Build hc CLI
run: |
nix bundle .#holonix_hc
./hc --version
- name: Build hc-run-local-services CLI
run: |
nix bundle .#holonix_hc_run_local_services
./hc-run-local-services --version
- name: Build hcterm CLI
run: |
nix bundle .#holonix_hcterm
./hcterm --version