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: "Build and cache Nix Flake" | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: Install Nix with Flakes support | |
| uses: cachix/install-nix-action@v26 | |
| with: | |
| extra_nix_config: | | |
| experimental-features = nix-command flakes | |
| - name: Setup Cachix | |
| uses: cachix/cachix-action@v14 | |
| with: | |
| name: rwietter | |
| authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
| extraPushArgs: "--jobs 8" | |
| - name: Build Flake outputs | |
| run: nix build .#nixosConfigurations.rwietter.config.system.build.toplevel .#homeConfigurations.rwietter.activationPackage |