From 1bf22174b341cf374fdf6f807bf633f8d6e9aa7e Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Tue, 3 Feb 2026 09:38:02 +0000 Subject: [PATCH] Add Gitea Actions workflow: ci.yml --- .gitea/workflows/ci.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .gitea/workflows/ci.yml diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..37b4cc5 --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,36 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-rust@v1 + with: + rust-version: '1.75' + profile: minimal + - run: cargo check + - run: cargo test --all -- --test-threads=4 + - run: cargo clippy --all-features -- -D warnings + + build: + runs-on: ubuntu-latest + needs: test + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-rust@v1 + with: + rust-version: '1.75' + profile: minimal + - run: cargo build --release + - name: Upload binary + uses: actions/upload-artifact@v4 + with: + name: tui-generator-cli + path: target/release/tui-generator