add github workflow to build and push to cachix #1
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" | |
on: | |
pull_request: | |
push: | |
jobs: | |
checks: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: cachix/install-nix-action@v20 | |
- uses: cachix/cachix-action@v12 | |
with: | |
name: gabedunn | |
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" | |
- run: nix flake check --print-build-logs | |
shell: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: cachix/install-nix-action@v20 | |
- uses: cachix/cachix-action@v12 | |
with: | |
name: gabedunn | |
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" | |
- run: nix build .#devShells.x86_64-linux.default --print-build-logs | |
packages-beekeeper: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: cachix/install-nix-action@v20 | |
- uses: cachix/cachix-action@v12 | |
with: | |
name: gabedunn | |
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" | |
- run: nix build .#packages.x86_64-linux.beekeeper-studio-ultimate --print-build-logs | |
packages-switchup: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: cachix/install-nix-action@v20 | |
- uses: cachix/cachix-action@v12 | |
with: | |
name: gabedunn | |
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" | |
- run: nix build .#packages.x86_64-linux.switchup --print-build-logs |