Skip to content

Commit

Permalink
add github workflow to build and push to cachix
Browse files Browse the repository at this point in the history
  • Loading branch information
redxtech committed Jan 4, 2024
1 parent ef8e676 commit c2ad1de
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/nix-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
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

0 comments on commit c2ad1de

Please sign in to comment.