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