All checks were successful
Build Server / Compile DLL (push) Successful in 1m30s
- 添加名称标签并引入nodejs作为依赖来增强构建流程的可读性和功能性。
37 lines
823 B
YAML
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
|