From 466fe4b3bd41376ee04c0c730f13f4c5e908863c Mon Sep 17 00:00:00 2001 From: Ferdinand Schober Date: Fri, 20 Feb 2026 16:43:57 +0100 Subject: [PATCH] update cachix and disable magic nix-cache (#393) magic nix cache seems to hang forever. --- .github/workflows/cachix.yml | 64 ++++++++++++++++++++---------------- 1 file changed, 35 insertions(+), 29 deletions(-) diff --git a/.github/workflows/cachix.yml b/.github/workflows/cachix.yml index 8a89edc..494c803 100644 --- a/.github/workflows/cachix.yml +++ b/.github/workflows/cachix.yml @@ -1,40 +1,46 @@ -name: Binary Cache +name: Nix Binary Cache + +on: + push: + branches: ["main"] + pull_request: + branches: ["main"] + workflow_dispatch: -on: [push, pull_request, workflow_dispatch] jobs: nix: strategy: matrix: - os: - - ubuntu-latest - - macos-15-intel - - macos-14 + os: + - ubuntu-latest + - macos-15-intel + - macos-latest name: "Build" - runs-on: ${{ matrix.os }} + runs-on: ${{ matrix.os }} steps: - - name: Checkout - uses: actions/checkout@v4 - with: - submodules: recursive + - name: Checkout + uses: actions/checkout@v4 + with: + submodules: recursive - - uses: DeterminateSystems/nix-installer-action@main - with: - logger: pretty - - uses: DeterminateSystems/magic-nix-cache-action@main - - uses: cachix/cachix-action@v14 - with: - name: lan-mouse - authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' + # - uses: DeterminateSystems/nix-installer-action@main + # with: + # logger: pretty + # - uses: DeterminateSystems/magic-nix-cache-action@main + - uses: cachix/install-nix-action@v31 + - uses: cachix/cachix-action@v16 + with: + name: lan-mouse + authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" - - name: Build lan-mouse (x86_64-linux) - if: matrix.os == 'ubuntu-latest' - run: nix build --print-build-logs --show-trace .#packages.x86_64-linux.lan-mouse + - name: Build lan-mouse (x86_64-linux) + if: matrix.os == 'ubuntu-latest' + run: nix build --print-build-logs --show-trace .#packages.x86_64-linux.lan-mouse - - name: Build lan-mouse (x86_64-darwin) - if: matrix.os == 'macos-15-intel' - run: nix build --print-build-logs --show-trace .#packages.x86_64-darwin.lan-mouse - - - name: Build lan-mouse (aarch64-darwin) - if: matrix.os == 'macos-14' - run: nix build --print-build-logs --show-trace .#packages.aarch64-darwin.lan-mouse + - name: Build lan-mouse (x86_64-darwin) + if: matrix.os == 'macos-15-intel' + run: nix build --print-build-logs --show-trace .#packages.x86_64-darwin.lan-mouse + - name: Build lan-mouse (aarch64-darwin) + if: matrix.os == 'macos-latest' + run: nix build --print-build-logs --show-trace .#packages.aarch64-darwin.lan-mouse