mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-03-07 11:59:59 +03:00
47 lines
1.3 KiB
YAML
47 lines
1.3 KiB
YAML
name: Nix Binary Cache
|
|
|
|
on:
|
|
push:
|
|
branches: ["main"]
|
|
pull_request:
|
|
branches: ["main"]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
nix:
|
|
strategy:
|
|
matrix:
|
|
os:
|
|
- ubuntu-latest
|
|
- macos-15-intel
|
|
- macos-latest
|
|
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/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-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
|