2023-09-14 13:00:07 +00:00
|
|
|
name: Flake Check
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_call:
|
|
|
|
inputs:
|
|
|
|
runner:
|
|
|
|
default: ubuntu-latest-amd64
|
|
|
|
required: false
|
|
|
|
type: choice
|
|
|
|
options:
|
|
|
|
- ubuntu-latest-amd64
|
|
|
|
- ubuntu-latest-arm64
|
|
|
|
|
|
|
|
package:
|
|
|
|
default: ''
|
|
|
|
required: false
|
|
|
|
type: string
|
|
|
|
|
|
|
|
jobs:
|
2023-09-14 13:02:31 +00:00
|
|
|
build:
|
2023-09-14 13:00:07 +00:00
|
|
|
runs-on: "${{ inputs.runner }}"
|
|
|
|
|
|
|
|
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
|
2023-09-14 14:38:40 +00:00
|
|
|
uses: https://github.com/ryanccn/attic-action@v0
|
2023-09-14 13:00:07 +00:00
|
|
|
with:
|
|
|
|
endpoint: ${{ secrets.ATTIC_ENDPOINT }}
|
|
|
|
cache: ${{ secrets.ATTIC_CACHE }}
|
|
|
|
token: ${{ secrets.ATTIC_TOKEN }}
|
2023-09-14 14:38:40 +00:00
|
|
|
- run: attic use ${{ secrets.ATTIC_CACHE }}
|
2023-09-14 13:00:07 +00:00
|
|
|
- run: nix build ".#${{ inputs.package }}"
|