From 108903ab3db0cbcde3bc963b58233104ffaff598 Mon Sep 17 00:00:00 2001 From: lily Date: Mon, 24 Aug 2026 18:39:04 -0400 Subject: [PATCH] forgejo runner fixes --- .forgejo/workflows/ci.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .forgejo/workflows/ci.yml diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml new file mode 100644 index 0000000..233aa6a --- /dev/null +++ b/.forgejo/workflows/ci.yml @@ -0,0 +1,39 @@ +name: CI + +on: + push: + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Install build tools and Rust + run: | + apt-get update && apt-get install -y pkg-config libssl-dev curl ca-certificates + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --component rustfmt,clippy + echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" + + - name: Format check + run: cargo fmt --check + + - name: Clippy + run: cargo clippy --all-targets + + - name: Test + run: cargo test + + - name: Build + run: cargo build --release + + - uses: actions/upload-artifact@v4 + with: + name: matrix-bridge + path: target/release/matrix-bridge + + - name: Docker build + run: | + apt-get update && apt-get install -y docker.io + docker build -t matrix-bridge:ci .