From c2ad1de2306b01f094300e726f53d8ca06062246 Mon Sep 17 00:00:00 2001 From: Gabe Dunn Date: Thu, 4 Jan 2024 15:13:32 -0700 Subject: [PATCH] add github workflow to build and push to cachix --- .github/workflows/nix-build.yaml | 48 ++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/nix-build.yaml diff --git a/.github/workflows/nix-build.yaml b/.github/workflows/nix-build.yaml new file mode 100644 index 00000000..5be3d0aa --- /dev/null +++ b/.github/workflows/nix-build.yaml @@ -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