From cf8c0d351e74bb0423bae550055c7824e06c4db2 Mon Sep 17 00:00:00 2001 From: xfy911 Date: Mon, 15 Jun 2026 17:52:08 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E8=BF=81=E7=A7=BB=20GitHub=20Actions=20?= =?UTF-8?q?=E5=88=B0=20Gitea=20Actions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/ci.yml | 47 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 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..b83c7f3 --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,47 @@ +name: CI + +on: + push: + branches: [main, master] + pull_request: + branches: [main, master] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + submodules: recursive + + - name: Install dependencies + run: | + sudo apt-get update + sudo apt-get install -y \ + build-essential cmake \ + liburing-dev libz-dev \ + libbrotli-dev libssl-dev \ + libnghttp2-dev + + - name: Build coco + run: | + cd coco + mkdir -p build && cd build + cmake .. + make -j$(nproc) + + - name: Build cocoon + run: make + + - name: Run unit tests + run: make unit-test + + - name: Run integration tests + run: make test + + - name: Run benchmark + run: | + sudo apt-get install -y wrk || true + make bench || true