summaryrefslogtreecommitdiffstats
path: root/.github/workflows/cachix.yml
blob: d52c88b49760c1f8b6b725420a6bf53871765c55 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
name: Binary Cache

on: [push, pull_request, workflow_dispatch]
jobs:
  nix:
    name: "Build"
    runs-on: ubuntu-latest
    steps:
    - 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 }}'

    - name: Build lan-mouse
      run: nix build --print-build-logs