GHA builds only when Garnix fails evaluation check #568
Workflow file for this run
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: Home | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
paths-ignore: | |
- 'GNOME.md' | |
- 'README.md' | |
- 'notes/**' | |
- '.git-crypt/**' | |
- '.gitattributes' | |
- '.gitignore' | |
- 'system/**' | |
- 'outputs/os.nix' | |
- 'switch' | |
- '.mergify.yml' | |
- 'garnix.yaml' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
# temporarily disabling these jobs | |
if: false | |
strategy: | |
fail-fast: true | |
matrix: | |
config_name: | |
- hyprland-edp | |
- hyprland-hdmi | |
- hyprland-hdmi-mutable | |
- xmonad-edp | |
- xmonad-hdmi | |
steps: | |
- uses: actions/[email protected] | |
- name: "Install Nix ❄️" | |
uses: cachix/install-nix-action@v30 | |
- name: "Install Cachix ❄️" | |
uses: cachix/cachix-action@v15 | |
with: | |
name: gvolpe-nixos | |
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" | |
# Needed because cachix is also installed by Home Manager | |
- name: "Set priority flag for Cachix 🚩" | |
run: nix-env --set-flag priority 0 cachix | |
- name: "Build ${{ matrix.config_name }} Home Manager config 🏠" | |
run: nix build .#homeConfigurations.${{ matrix.config_name }}.activationPackage -L |