From 4b31fd60c04e2ea32b0f6739707c0afd65d093de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sat, 4 Nov 2023 10:45:10 +0000 Subject: [PATCH] Add gitea build actions --- .gitea/workflows/build.yaml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 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..f6fd11b --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,37 @@ +name: build + +on: push +env: + DEV_SHELL_NAME: CI + CI: true +jobs: + build-cargo: + runs-on: flakes-action + steps: + - uses: actions/checkout@v3 + name: Checkout + - name: + run: | + nix develop -c cargo build --release + build-nix: + runs-on: flakes-action + steps: + - uses: actions/checkout@v3 + name: Checkout + - name: + run: | + nix build + check-nix: + runs-on: flakes-action + steps: + - uses: actions/checkout@v3 + name: Checkout + - name: Metadata + run: | + nix flake metadata + - name: Statix + run: | + nix develop -c statix check + - name: Flake check + run: | + nix flake check