2022-02-27 23:02:11 +00:00
|
|
|
name: "Check Flake Groups"
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- 'flakes/**.toml'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
automatic-custom-flakes-check:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
fail-fast: true
|
|
|
|
|
|
|
|
env:
|
|
|
|
RUST_LOG: debug
|
2022-02-27 23:10:09 +00:00
|
|
|
|
2022-02-27 23:02:11 +00:00
|
|
|
steps:
|
|
|
|
|
|
|
|
- name: Checking out the repository
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
2022-02-27 23:10:09 +00:00
|
|
|
- name: Setup
|
|
|
|
uses: ./.github/actions/common-setup
|
2022-02-27 23:02:11 +00:00
|
|
|
with:
|
2022-02-27 23:10:09 +00:00
|
|
|
CACHIX_SIGNING_KEY: ${{ secrets.CACHIX_SIGNING_KEY }}
|
2022-02-27 23:02:11 +00:00
|
|
|
|
|
|
|
- name: Building import_scripts
|
|
|
|
run: |
|
|
|
|
nix build .#flake-info
|
|
|
|
|
|
|
|
- name: Try importing all custom flakes
|
|
|
|
run: |
|
|
|
|
for flake_group in flakes/**/*.toml
|
|
|
|
do
|
|
|
|
./result/bin/flake-info group "$flake_group" "$(basename "$flake_group" .toml)"
|
|
|
|
done
|