Skip to content

ci: only run cachix workflow on code changes #18

ci: only run cachix workflow on code changes

ci: only run cachix workflow on code changes #18

Workflow file for this run

name: cachix
on:
push:
branches: [master]
paths:
- "cmd/nssh/**"
- "internal/**"
- ".github/workflows/cachix.yaml"
- "go.*"
- "flake.*"
workflow_dispatch:
jobs:
build:
name: build nssh (${{ matrix.system }})
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
include:
- runner: ubuntu-latest
system: x86_64-linux
- runner: macos-latest
system: aarch64-darwin
steps:
- uses: actions/checkout@v6
- uses: cachix/install-nix-action@v31
with:
extra_nix_config: |
accept-flake-config = true
- uses: cachix/cachix-action@v17
with:
name: abizer
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- run: nix build .#packages.${{ matrix.system }}.default --print-out-paths