summaryrefslogtreecommitdiffstats
path: root/.github/workflows/cachix.yml
blob: 1f86dc1ceb62bd9724cb3e846f4b0038e6348f33 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Binary Cache

on: [push, pull_request, workflow_dispatch]
jobs:
  nix:
    strategy:
      matrix:
       os: 
        - ubuntu-latest
        - macos-13
        - macos-14
    name: "Build"
    runs-on: ${{ matrix.os }} 
    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 (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-13'
      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