| 4 Jan 2024 |
Mic92 | All in all as of today, I haven't really optimized it for these types of workloads. Hydra might be still the better choice for large package sets. | 13:15:21 |
| 5 Jan 2024 |
| obsqrprjkt joined the room. | 14:08:52 |
| 6 Jan 2024 |
| eyJhb set a profile picture. | 14:00:35 |
| 8 Jan 2024 |
K900 | Does anyone have a build this entire flake and push to cache action I can steal? | 08:33:46 |
raitobezarius | a single action or a github action code to do both? | 09:01:44 |
K900 | Either works | 09:06:57 |
K900 | Basically I just want something I can drop into kde2nix to have a binary cache for it | 09:07:06 |
K900 | Without spending half a day on figuring out github actions | 09:07:15 |
aidalgol | I think that's what cachix-action does with a post hook. | 09:28:32 |
aidalgol | We use it in the GH action for vs-overlay. I think it uploads everything that got built in your action, so it should work with the flake build command, not just nix-build. | 09:30:48 |
aidalgol | So I think this would do what you want.
name: Steal this action
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: cachix/cachix-action@v12
with:
name: nix-community
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix build
| 09:31:35 |
K900 | Hmm | 09:31:57 |
K900 | Yeah looks stealable | 09:31:59 |
aidalgol | Er, that would only build the default package, won't it... How do you build an entire flake? | 09:32:45 |
aidalgol | * Er, that would only build the default package, would't it... How do you build an entire flake? | 09:33:09 |
K900 | I have an "all packages" target kind of | 09:33:11 |
K900 | So I can build that | 09:33:14 |
aidalgol | Ah, handy. | 09:33:25 |
K900 | https://github.com/nix-community/kde2nix/actions/runs/7445595376/job/20254134079?pr=28 | 09:35:44 |
K900 | I think it worked??? | 09:35:49 |
aidalgol | And I think the uses: cachix/cachix-action@v12 bit will mean that nix uses the nix-community cachix cache, so it won't burn through GH Action minutes rebuilding everything every time. | 09:37:27 |
K900 | Looks like it's fetching some things from there at least | 09:38:45 |
aidalgol | Probably dependencies. See what happens on a subsequent run. | 09:39:23 |
aidalgol | So how's Plasma 6 on NixOS for you? I'm looking forward to the release. | 09:40:04 |
K900 | Scary good | 09:40:14 |
K900 | I got alpha 1 building, and in two days I was daily driving it on all of my machines and I still am | 09:40:43 |
K900 | Compared to the 4.x to 5.0 update, it's insanely good | 09:41:30 |
K900 | So uh | 11:56:15 |
K900 | Maybe building everything in one job was a bad idea | 11:56:24 |
K900 | It's been chugging for two and a half hours now and it's not even halfway done I think | 11:56:47 |