From de0abd956ddf326e958708ccbe362e3a7be0af8a Mon Sep 17 00:00:00 2001 From: jeff Date: Thu, 18 Jul 2024 10:55:29 +0000 Subject: [PATCH] Add .gitea/workflows/rust.yaml --- .gitea/workflows/rust.yaml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .gitea/workflows/rust.yaml diff --git a/.gitea/workflows/rust.yaml b/.gitea/workflows/rust.yaml new file mode 100644 index 0000000..eb3b835 --- /dev/null +++ b/.gitea/workflows/rust.yaml @@ -0,0 +1,32 @@ + name: Rust + + on: + push: + branches: + - dev + - main + pull_request: + branches: + - dev + - main + + jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Rust + uses: actions-rs/toolchain@v1 + + - name: Run cargo clippy + run: cargo clippy -- -D warnings + + - name: Check for errors + run: | + if [ "$?" -ne 0 ]; then + echo "Check failed" + exit 1 + fi \ No newline at end of file