xfy911 66196f84f6
Some checks failed
CI / build (push) Failing after 2m51s
ci: 修复构建目录问题
Build coco 步骤会改变工作目录到 coco/build,
导致后续 Build cocoon 步骤在错误的目录下执行 make。
添加 cd ../.. 回到项目根目录。
2026-06-15 19:24:01 +08:00

49 lines
962 B
YAML

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)
cd ../..
- name: Build cocoon
run: make build-all
- 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