nix: update config #35
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: Nix build and push to Cachix | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- 'nix/**' | |
- '.github/workflows/**' | |
jobs: | |
build: | |
name: ${{ matrix.profile }} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
profile: [gregnix-personal, gregnix-nubank] | |
steps: | |
- uses: easimon/maximize-build-space@v6 | |
with: | |
overprovision-lvm: true | |
remove-android: true | |
remove-dotnet: true | |
remove-haskell: true | |
- uses: actions/checkout@v3 | |
- uses: cachix/install-nix-action@v18 | |
- uses: cachix/cachix-action@v12 | |
with: | |
name: ericdallo | |
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 ❄" | |
run: | | |
make build-${{ matrix.profile }} -C nix |