mirror of
https://github.com/aykhans/sarin.git
synced 2026-10-15 14:18:52 +00:00
37 lines
726 B
YAML
37 lines
726 B
YAML
name: nix
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
paths:
|
|
- "go.mod"
|
|
- "go.sum"
|
|
- "nix/**"
|
|
- "flake.nix"
|
|
- "flake.lock"
|
|
workflow_call:
|
|
inputs:
|
|
ref:
|
|
description: "Ref to check out. Defaults to the triggering ref."
|
|
type: string
|
|
required: false
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build:
|
|
name: build
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
with:
|
|
ref: ${{ inputs.ref || github.ref }}
|
|
- uses: cachix/install-nix-action@v31
|
|
with:
|
|
github_access_token: ${{ secrets.GITHUB_TOKEN }}
|
|
- name: nix build
|
|
run: nix build .#default --no-link --print-build-logs
|