!PbtOpdWBSRFbEZRLIf:numtide.com

Nix Community Projects

645 Members
Meta discussions related to https://nix-community.org. (For project specific discussions use github issues or projects own matrix channel). Need help from an admin? Open an issue on https://github.com/nix-community/infra/issues163 Servers

Load older messages


SenderMessageTime
8 Jan 2024
@k900:0upti.meK900Basically I just want something I can drop into kde2nix to have a binary cache for it09:07:06
@k900:0upti.meK900Without spending half a day on figuring out github actions09:07:15
@aidalgol:matrix.orgaidalgol I think that's what cachix-action does with a post hook. 09:28:32
@aidalgol:matrix.orgaidalgol 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:matrix.orgaidalgol

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:0upti.meK900Hmm09:31:57
@k900:0upti.meK900Yeah looks stealable09:31:59
@aidalgol:matrix.orgaidalgol Er, that would only build the default package, won't it... How do you build an entire flake? 09:32:45
@aidalgol:matrix.orgaidalgol * Er, that would only build the default package, would't it... How do you build an entire flake? 09:33:09
@k900:0upti.meK900I have an "all packages" target kind of09:33:11
@k900:0upti.meK900So I can build that09:33:14
@aidalgol:matrix.orgaidalgolAh, handy.09:33:25
@k900:0upti.meK900https://github.com/nix-community/kde2nix/actions/runs/7445595376/job/20254134079?pr=2809:35:44
@k900:0upti.meK900I think it worked???09:35:49
@aidalgol:matrix.orgaidalgol 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:0upti.meK900Looks like it's fetching some things from there at least09:38:45
@aidalgol:matrix.orgaidalgolProbably dependencies. See what happens on a subsequent run.09:39:23
@aidalgol:matrix.orgaidalgolSo how's Plasma 6 on NixOS for you? I'm looking forward to the release.09:40:04
@k900:0upti.meK900Scary good09:40:14
@k900:0upti.meK900I got alpha 1 building, and in two days I was daily driving it on all of my machines and I still am09:40:43
@k900:0upti.meK900Compared to the 4.x to 5.0 update, it's insanely good09:41:30
@k900:0upti.meK900So uh11:56:15
@k900:0upti.meK900Maybe building everything in one job was a bad idea11:56:24
@k900:0upti.meK900It's been chugging for two and a half hours now and it's not even halfway done I think11:56:47
@k900:0upti.meK900Still chugging...14:13:13
9 Jan 2024
@matthewcroughan:defenestrate.itmatthewcroughan changed their display name from matthewcroughan - Linux 6.7 When to matthewcroughan.08:37:37
@andar1an:matrix.org@andar1an:matrix.org joined the room.20:30:12
10 Jan 2024
@9hp71n:matrix.orgghpzin changed their display name from 9hp71n to ghpzin.06:33:10
11 Jan 2024
@andar1an:matrix.org@andar1an:matrix.org left the room.11:43:20
12 Jan 2024
@scrumplex:duckhub.ioScrumplex joined the room.06:55:07

Show newer messages


Back to Room ListRoom Version: 6