Skip to content

Commit da5e517

Browse files
authored
Merge pull request #2 from holochain/add-intel-apple
Add x86_64-apple cross
2 parents 60ba12f + c91001c commit da5e517

File tree

2 files changed

+41
-2
lines changed

2 files changed

+41
-2
lines changed

.github/workflows/build.yaml

+28-2
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,22 @@ jobs:
4949
with:
5050
install_url: https://releases.nixos.org/nix/nix-2.20.4/install
5151

52-
- name: Build for x86_64-apple-darwin
52+
- name: Build for aarch64-apple-darwin
5353
run: nix build .#holochain_aarch64-apple
5454

55+
build-holochain-legacy-apple:
56+
runs-on: macos-13
57+
steps:
58+
- uses: actions/checkout@v4
59+
60+
- name: Install nix
61+
uses: cachix/install-nix-action@v26
62+
with:
63+
install_url: https://releases.nixos.org/nix/nix-2.20.4/install
64+
65+
- name: Build for x86_64-apple-darwin
66+
run: nix build .#holochain_x86_64-apple
67+
5568
build-lair-keystore:
5669
runs-on: ubuntu-latest
5770
steps:
@@ -88,9 +101,22 @@ jobs:
88101
with:
89102
install_url: https://releases.nixos.org/nix/nix-2.20.4/install
90103

91-
- name: Build for x86_64-apple-darwin
104+
- name: Build for aarch64-apple-darwin
92105
run: nix build .#lair_keystore_aarch64-apple
93106

107+
build-lair-keystore-legacy-apple:
108+
runs-on: macos-13
109+
steps:
110+
- uses: actions/checkout@v4
111+
112+
- name: Install nix
113+
uses: cachix/install-nix-action@v26
114+
with:
115+
install_url: https://releases.nixos.org/nix/nix-2.20.4/install
116+
117+
- name: Build for x86_64-apple-darwin
118+
run: nix build .#lair_keystore_x86_64-apple
119+
94120
bundle-x86-64-linux:
95121
runs-on: ubuntu-latest
96122
steps:

flake.nix

+13
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@
7373
crossSystem = "aarch64-darwin";
7474
rustTargetTriple = "aarch64-apple-darwin";
7575
};
76+
} else if localSystem == "x86_64-darwin" then {
77+
"${package}_x86_64-apple" = import ./modules/holochain-cross.nix {
78+
inherit localSystem inputs crate package;
79+
crossSystem = "x86_64-darwin";
80+
rustTargetTriple = "x86_64-apple-darwin";
81+
};
7682
} else { });
7783

7884
defineLairKeystorePackages = {}: {
@@ -97,6 +103,13 @@
97103
crossSystem = "aarch64-darwin";
98104
rustTargetTriple = "aarch64-apple-darwin";
99105
};
106+
107+
} else if localSystem == "x86_64-darwin" then {
108+
lair_keystore_x86_64-apple = import ./modules/lair-keystore-cross.nix {
109+
inherit localSystem inputs;
110+
crossSystem = "x86_64-darwin";
111+
rustTargetTriple = "x86_64-apple-darwin";
112+
};
100113
} else { });
101114

102115
extractHolochainBin = bin: pkgs.stdenv.mkDerivation {

0 commit comments

Comments
 (0)