All checks were successful
Build Server / Compile DLL (push) Successful in 1m17s
28 lines
783 B
YAML
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
|
|
|