This commit is contained in:
28
.gitea/workflows/build.yaml
Normal file
28
.gitea/workflows/build.yaml
Normal file
@@ -0,0 +1,28 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user