diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..2c32eb6 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,29 @@ +name: Build + +on: + push: + branches: [main] + pull_request: + branches: [main] + +permissions: + contents: read + +jobs: + build: + name: Build blzrd + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v7 + + - name: Install Nix + uses: DeterminateSystems/nix-installer-action@v22 + + - name: Configure Magic Nix Cache + uses: DeterminateSystems/magic-nix-cache-action@v14 + with: + use-flakehub: false + + - name: Build blzrd + run: nix build .#blzrd --print-build-logs diff --git a/.tangled/workflows/build.yml b/.tangled/workflows/build.yml new file mode 100644 index 0000000..ad64fbb --- /dev/null +++ b/.tangled/workflows/build.yml @@ -0,0 +1,13 @@ +when: + - event: [push, pull_request] + branch: [main] + +engine: nixery + +dependencies: + nixpkgs: + - nix + +steps: + - name: Build + command: nix build --print-build-logs \ No newline at end of file