Set version to 0.6.0 #225
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |