oizys/.github/workflows/checks.yml

42 lines
1,002 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
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ inputs.host }}
cancel-in-progress: true
jobs:
build:
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
- uses: DeterminateSystems/magic-nix-cache-action@v7
- 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-14 12:17:39 -05:00
cachix watch-exec daylin -- nix build --accept-flake-config '.#checks.x86_64-linux.packageCheck'