Files
wechat-ocr-server/.gitea/workflows/build.yaml
imbytecat 7fa96e26cb
All checks were successful
Build Server / Compile DLL (push) Successful in 1m22s
chore: 优化工件上传配置
- 优化构建脚本中的工件上传配置。
2025-07-07 23:44:56 +08:00

28 lines
744 B
YAML

name: Build Server
on:
push:
branches:
- main
workflow_dispatch:
jobs:
compile-dll:
name: Compile DLL
runs-on: ubuntu-latest
steps:
- run: |
apt-get update && apt-get install -y build-essential cmake g++ python3-dev
- run: |
git clone https://github.com/swigger/wechat-ocr.git wcocr
- run: |
# fix: https://github.com/abseil/abseil-cpp/issues/1206
sed -i 's/v3.21.0/v3.21.2/g' wcocr/CMakeLists.txt
- run: |
mkdir -p wcocr/build && cd wcocr/build && cmake .. && make -j$(nproc)
- name: Upload artifacts
uses: christopherhx/gitea-upload-artifact@v4
with:
name: libwcocr
path: wcocr/build/libwcocr.so