Files
wechat-ocr-server/.gitea/workflows/build.yaml
imbytecat 6a258b71a9
All checks were successful
Build Server / Compile DLL (push) Successful in 1m30s
chore: 引入nodejs优化构建流程配置
- 添加名称标签并引入nodejs作为依赖来增强构建流程的可读性和功能性。
2025-07-08 00:01:44 +08:00

37 lines
823 B
YAML

name: Build Server
on:
push:
branches:
- main
workflow_dispatch:
jobs:
compile-dll:
name: Compile DLL
runs-on: ubuntu-latest
container:
image: greyltc/archlinux-aur:yay
steps:
- name: Install dependencies
run: |
yay -Syu --noconfirm cmake python nodejs
- name: Clone repository
run: |
git clone https://github.com/swigger/wechat-ocr.git wcocr
- name: Fix Protobuf version
run: |
sed -i 's/v3.21.0/v3.21.2/g' wcocr/CMakeLists.txt
- name: Build
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