Skip to content

Set version to 0.6.0 #225

Set version to 0.6.0

Set version to 0.6.0 #225

name: "Check build variants"
on:
push:
branches: [main]
pull_request:
branches: [main]
types: [opened, synchronize, reopened] # trigger on PRs
workflow_dispatch:
jobs:
build:
name: Check build variants
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v27
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Generate variants JSON
run: nix eval --raw .#lib.allBuildVariantsJSON | nix run nixpkgs#jq 'walk(if type == "array" then sort else . end)' > build-variants.json
- name: Check if variants JSON is up-to-date
run: |
if git diff --exit-code build-variants.json; then
echo "βœ… variants.json is up-to-date"
else
echo "πŸ›‘ regenerate variants.json: nix eval --raw .#lib.allBuildVariantsJSON | nix run nixpkgs#jq 'walk(if type == "array" then sort else . end)' > build-variants.json"
exit 1
fi
- name: Generate variants Markdown
run: nix run nixpkgs#python3 scripts/gen_variants_markdown.py
- name: Check if variants Markdown is up-to-date
run: |
if git diff --exit-code docs/build-variants.md; then
echo "βœ… docs/build-variants.md is up-to-date"
else
echo "πŸ›‘ regenerate docs/build-variants: nix run nixpkgs#python3 scripts/gen_variants_markdown.py"
exit 1
fi