Files
wechat-ocr-server/.gitea/workflows/build.yaml
imbytecat 7fe0f135f5
All checks were successful
Build Server / Compile DLL (push) Successful in 1m17s
init
2025-07-07 16:48:43 +08:00

28 lines
783 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 # actions/upload-artifact@v4
with:
name: libwcocr
path: wcocr/build/libwcocr.so