1
0
Fork 0
reusable-workflows/.github/workflows/nix-flake-check.yaml

32 lines
767 B
YAML
Raw Normal View History

2023-09-14 08:38:33 +00:00
name: Flake Check
on:
workflow_call:
2023-09-14 13:00:07 +00:00
inputs:
runner:
default: ubuntu-latest-amd64
required: false
type: choice
options:
- ubuntu-latest-amd64
- ubuntu-latest-arm64
2023-09-14 08:38:33 +00:00
jobs:
check:
2023-09-14 13:00:07 +00:00
runs-on: "${{ inputs.runner }}"
2023-09-14 08:38:33 +00:00
steps:
- uses: actions/checkout@v3
- name: Install Nix
uses: https://github.com/DeterminateSystems/nix-installer-action@v4
with:
init: none
planner: linux
github-token: null
- name: Setup Attic
uses: https://github.com/nifoc/attic-action@use-cache
2023-09-14 08:38:33 +00:00
with:
endpoint: ${{ secrets.ATTIC_ENDPOINT }}
cache: ${{ secrets.ATTIC_CACHE }}
token: ${{ secrets.ATTIC_TOKEN }}
- run: nix flake check --keep-going