-
Notifications
You must be signed in to change notification settings - Fork 88
72 lines (63 loc) · 2.04 KB
/
cardano-node.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
# Produce distributable binaries for cardano-node 8.7.2
#
# XXX: Remove again when upstream releases them (again).
name: Cardano-node
on:
workflow_dispatch:
push:
branches:
- "cardano-node-github-workflow"
jobs:
build-executables-linux:
name: "Build x86_64-linux static executables"
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout cardano-node 8.7.2
uses: actions/checkout@v4
with:
repository: IntersectMBO/cardano-node
ref: 8.7.2
- name: ❄ Prepare nix
uses: cachix/install-nix-action@v23
with:
extra_nix_config: |
accept-flake-config = true
log-lines = 1000
- name: ❄ Build cardano-node static executables
run: |
mkdir -p out/
nix build .#hydraJobs.x86_64-linux.musl.cardano-node
cp result/bin/* out/
nix build .#hydraJobs.x86_64-linux.musl.cardano-cli
cp result/bin/* out/
- name: 💾 Upload matching cardano-node executables
uses: actions/upload-artifact@v4
with:
name: cardano-node-x86_64-linux # automatically zips
path: out/*
build-executables-macos:
name: "Build aarch64-darwin dynamic executables"
runs-on: [self-hosted, macOS, ARM64]
steps:
- name: 📥 Checkout cardano-node 8.7.2
uses: actions/checkout@v4
with:
# 8.7.2-fork which provides a macos flake output
repository: ch1bo/cardano-node
ref: 170817f5ba3f7838ffd9bd181bc30504906a6506
- name: ❄ Prepare nix
uses: cachix/install-nix-action@v23
with:
extra_nix_config: |
accept-flake-config = true
log-lines = 1000
- name: ❄ Build executables
run: |
mkdir -p out
nix build .#hydraJobs.aarch64-darwin.native.cardano-node-macos
tar -C out -xzvf result/cardano-node-*-macos.tar.gz cardano-node cardano-cli '*.dylib'
- name: 💾 Upload executables
uses: actions/upload-artifact@v4
with:
name: cardano-node-aarch64-darwin # automatically zips
path: out/*