oizys/.github/workflows/checks.yml

42 lines
976 B
YAML
Raw Normal View History

name: Run Nix Flake Checks
on:
2024-06-14 11:54:54 -05:00
workflow_call:
workflow_dispatch:
inputs:
lockFile:
description: 'flake.lock file'
type: string
jobs:
2024-06-18 11:14:15 -05:00
checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
2024-06-14 14:40:02 -05:00
- uses: ./.github/actions/clean-disk
2024-06-14 15:02:01 -05:00
with:
purge-packages: false
2024-06-14 14:40:02 -05:00
- uses: DeterminateSystems/nix-installer-action@main
2024-06-18 11:14:15 -05:00
with:
extra-conf: |
accept-flake-config = true
- uses: DeterminateSystems/magic-nix-cache-action@v8
- uses: cachix/cachix-action@v15
with:
name: daylin
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- name: write lock file
if: "${{ inputs.lockFile != '' }}"
run: |
echo '${{ inputs.lockFile }}' > flake.lock
git diff
- name: Build
run: |
2024-06-18 11:14:15 -05:00
set -euo pipefail
2024-06-18 12:41:26 -05:00
cachix watch-exec daylin -- nix build '.#checks.x86_64-linux.makePackages'