Skip to content

Commit 1f5c58a

Browse files
committed
Add MacOS job to cardano-node workflow
1 parent 6d95964 commit 1f5c58a

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/cardano-node.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,34 @@ jobs:
3636
with:
3737
name: cardano-node-x86_64-linux # automatically zips
3838
path: out/*
39+
40+
build-executables-macos:
41+
name: "Build aarch64-darwin dynamic executables"
42+
runs-on: [self-hosted, macOS, ARM64]
43+
steps:
44+
- name: 📥 Checkout cardano-node 8.7.2
45+
uses: actions/checkout@v4
46+
with:
47+
repository: IntersectMBO/cardano-node
48+
ref: 8.7.2
49+
50+
- name: ❄ Prepare nix
51+
uses: cachix/install-nix-action@v23
52+
with:
53+
extra_nix_config: |
54+
accept-flake-config = true
55+
log-lines = 1000
56+
57+
- name: ❄ Build executables
58+
run: |
59+
mkdir -p out
60+
nix build .#cardano-node
61+
cp result/bin/* out/
62+
nix build .#cardano-cli
63+
cp result/bin/* out/
64+
65+
- name: 💾 Upload executables
66+
uses: actions/upload-artifact@v4
67+
with:
68+
name: cardano-node-aarch64-darwin # automatically zips
69+
path: out/*

0 commit comments

Comments
 (0)