From b0a85aaefc8d6b3cc5c899f3ff51a9091ab4451a Mon Sep 17 00:00:00 2001 From: Kodi Craft Date: Sun, 7 Jul 2024 11:52:57 +0200 Subject: [PATCH] Add workflow to build and test --- .gitea/workflows/build.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .gitea/workflows/build.yaml diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..8e2e93e --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,22 @@ +name: Build & Test + +on: + push: + branches: + - main + pull_request: + +jobs: + nix-build: + runs-on: nix + steps: + - uses: actions/checkout@v3 + - name: Run checks + run: nix flake check + - name: Build + run: nix build + - name: Upload build artifacts + uses: actions/upload-artifact@v3 + with: + path: result + name: build \ No newline at end of file