CI: clean up nix workflows; build default package #5
This file contains 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 Flake Validity | |
on: | |
workflow_dispatch: | |
pull_request: | |
paths: | |
- "pyprland/**" | |
- "**.nix" | |
- "**.lock" | |
- ".github/workflows/check.yml" | |
push: | |
paths: | |
- "pyprland/**" | |
- "**.nix" | |
- "**.lock" | |
- ".github/workflows/check.yml" | |
jobs: | |
check: | |
uses: ./.github/workflows/nix-setup.yml | |
secrets: | |
GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
with: | |
command: nix flake check --accept-flake-config --print-build-logs | |
build: | |
needs: [check] | |
uses: ./.github/workflows/nix-setup.yml | |
strategy: | |
matrix: | |
package: | |
- pyprland | |
secrets: | |
GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
with: | |
command: nix build .#${{ matrix.package }} --print-build-logs |