Skip to content

Commit

Permalink
revert to working macos-latest
Browse files Browse the repository at this point in the history
  • Loading branch information
jost-s committed May 28, 2024
1 parent d3a7a6d commit 7c3ca6f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-cache.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
os: [macos-latest]
# os: [ubuntu-latest, macos-latest, macos-13]
package: [launcher]
# package: [holochain, lair-keystore, launcher]
Expand Down
37 changes: 17 additions & 20 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
};

# define Rust toolchain version and targets to be used in this flake
rust = (pkgs.rust-bin.stable."1.77.2".default.override
rust = (pkgs.rust-bin.stable."1.78.0".default.override
{
targets = [ "wasm32-unknown-unknown" ];
});
Expand Down Expand Up @@ -135,11 +135,11 @@
craneLib.buildPackage {
pname = "hc-launch";
version = "workspace";
stdenv =
if pkgs.stdenv.isDarwin then
pkgs.overrideSDK pkgs.stdenv "11.0"
else
pkgs.stdenv;
# stdenv =
# if pkgs.stdenv.isDarwin then
# pkgs.overrideSDK pkgs.stdenv "11.0"
# else
# pkgs.stdenv;
# only build hc-launch binary
cargoExtraArgs = "--bin hc-launch";
# Use Launcher sources as defined in input dependencies and include only those files defined in the
Expand All @@ -150,20 +150,17 @@
};
# additional packages needed for build
# perl needed for openssl on all platforms
buildInputs =
[
pkgs.go
pkgs.perl
]
++ (pkgs.lib.optionals pkgs.stdenv.isLinux [
pkgs.pkg-config
pkgs.glib
])
++ (pkgs.lib.optionals pkgs.stdenv.isDarwin [
# additional packages needed for darwin platforms
pkgs.darwin.apple_sdk_11_0.frameworks.Carbon
pkgs.darwin.apple_sdk_11_0.frameworks.WebKit
]);
buildInputs = [
pkgs.go
pkgs.perl
]
++ (pkgs.lib.optionals pkgs.stdenv.isDarwin [
# additional packages needed for darwin platforms
pkgs.darwin.apple_sdk.frameworks.AppKit
pkgs.darwin.apple_sdk.frameworks.WebKit
# # additional packages needed for darwin platforms on x86_64
# pkgs.darwin.apple_sdk_11_0.frameworks.CoreFoundation
]);
# do not check built package as it either builds successfully or not
doCheck = false;
};
Expand Down

0 comments on commit 7c3ca6f

Please sign in to comment.