Skip to content

Prefer macos-13 GHA runner over macos-15 by introducing cachix#1237

Merged
kachick merged 1 commit intomainfrom
macos-13-again-with-binary-cache
Aug 8, 2025
Merged

Prefer macos-13 GHA runner over macos-15 by introducing cachix#1237
kachick merged 1 commit intomainfrom
macos-13-again-with-binary-cache

Conversation

@kachick
Copy link
Owner

@kachick kachick commented Aug 8, 2025

After GH-1235(GH-754), I may use the much slow macos-13 runner again if enabling the binary cache for darwin.

Partially revert GH-1165(GH-1164)
Might related to GH-1167, GH-1198, GH-911

@kachick
Copy link
Owner Author

kachick commented Aug 8, 2025

Why there is no nushell binary cache on darwin

Fri, 08 Aug 2025 09:13:58 GMT
building '/nix/store/5zplwvhly99zrx9a4c6jys82381kbysn-nushell-0.104.0.drv'...
> hydra-check nushell --arch x86_64-darwin
Build Status for nushell.x86_64-darwin on jobset nixpkgs/trunk
https://hydra.nixos.org/job/nixpkgs/trunk/nushell.x86_64-darwin
✔              nushell-0.106.1  2025-07-30  https://hydra.nixos.org/build/304032505
✔              nushell-0.105.1  2025-07-28  https://hydra.nixos.org/build/303595773
⏹ (Cancelled)  nushell-0.105.1  2025-07-26  https://hydra.nixos.org/build/303304774
✔              nushell-0.105.1  2025-07-15  https://hydra.nixos.org/build/302612278
✔              nushell-0.105.1  2025-06-24  https://hydra.nixos.org/build/301167062
✔              nushell-0.104.1  2025-06-18  https://hydra.nixos.org/build/300402082
✔              nushell-0.104.1  2025-06-10  https://hydra.nixos.org/build/299921151
✖ (Failed)     nushell-0.104.1  2025-05-31  https://hydra.nixos.org/build/298872660
✔              nushell-0.104.0  2025-05-17  https://hydra.nixos.org/build/297365085
✖ (Failed)     nushell-0.104.0  2025-05-06  https://hydra.nixos.org/build/296369103

It might be different channel. nixpkgs-unstable might be better than nixos-unstable when considering darwin than now.
However nushell package is using nixpkgs-25.05-darwin channel 🤔

@kachick
Copy link
Owner Author

kachick commented Aug 8, 2025

> hydra-check nushell --channel nixpkgs-25.05-darwin --arch x86_64-darwin
Build Status for nushell.x86_64-darwin on jobset nixpkgs/nixpkgs-25.05-darwin
https://hydra.nixos.org/job/nixpkgs/nixpkgs-25.05-darwin/nushell.x86_64-darwin
✔           nushell-0.104.0  2025-08-08  https://hydra.nixos.org/build/304443927
✖ (Failed)  nushell-0.104.0  2025-07-04  https://hydra.nixos.org/build/301655980
✔           nushell-0.104.0  2025-05-17  https://hydra.nixos.org/build/297712030

"rev": "3535321020f5617f3ca73065118984b1325331ab",

The rev seems different, however timestamp seems this is the cause.
It might be worth to test that will be fixed or not when updating to latest flake.lock.

@kachick
Copy link
Owner Author

kachick commented Aug 8, 2025

@kachick
Copy link
Owner Author

kachick commented Aug 8, 2025

Rerun used the binary cache 31 minutes -> 7 minutes

image

https://github.com/kachick/dotfiles/actions/runs/16826552350/job/47666511720

Still slow than ubuntu runner, however this is the limit of the macos-13 runner

image

@kachick kachick changed the title Prefer macos-13 runner over macos-15 by introducing cachix Prefer macos-13 GHA runner over macos-15 by introducing cachix Aug 8, 2025
@kachick
Copy link
Owner Author

kachick commented Aug 8, 2025

image

7 minutes is almost same of macos-15 without cachix

image

And this worked on my macbook. See #1238 (comment) and #1238 (comment) for detail

@kachick
Copy link
Owner Author

kachick commented Aug 8, 2025

image

Took 100MiB, as same as Linux

@kachick
Copy link
Owner Author

kachick commented Aug 8, 2025

Give it a try!

@kachick kachick merged commit 7f93907 into main Aug 8, 2025
18 checks passed
@kachick kachick deleted the macos-13-again-with-binary-cache branch August 8, 2025 15:29
# but I spend less than 1% of my time on macOS compared to Linux, so I don't want to make things more complex here.
"github-actions@macos-15" = home-manager-darwin.lib.homeManagerConfiguration {
pkgs = mkPkgs "aarch64-darwin";
# macos-13 is the latest x86_64-darwin runner for darwin and technically the right choice for respecting architecture of my old MacBook,
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# macos-13 is the latest x86_64-darwin runner for darwin and technically the right choice for respecting architecture of my old MacBook,
# macos-13 is the latest x86_64-darwin runner and technically the right choice for respecting architecture of my old MacBook,

@kachick
Copy link
Owner Author

kachick commented Aug 29, 2025

https://github.com/NixOS/nixpkgs/issues/405893

Minimum Version Update
As announced in the 25.05 release notes, Darwin will be updating the minimum supported version regularly going forward. 25.11 will be the first release to reflect that policy. The oldest supported release will be macOS 14.0 if it is possible to make availability warnings into errors by default.

🙄

Hmm... so, I can only use macos-13 runner only next 3 months ref: #1200

@kachick
Copy link
Owner Author

kachick commented Aug 29, 2025

Taking minutes to build my own homemade packages, for example git hooks written in go.
Dropping git env from darwin is a way.
Proceed to migrate on lima more. So I want #1220 for the preparation setp.

@kachick
Copy link
Owner Author

kachick commented Oct 2, 2025

Hmm... so, I can only use macos-13 runner only next 3 months ref: #1200

🎉 #1291

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant