Some checks failed
Build Server / Compile DLL (push) Failing after 17s
- 使用 Arch Linux 容器替换 Ubuntu 环境以编译 DLL。
31 lines
777 B
YAML
31 lines
777 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:
|
|
- run: |
|
|
# yay -Syu --noconfirm git python
|
|
echo "ok"
|
|
- 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
|
|
with:
|
|
name: libwcocr
|
|
path: wcocr/build/libwcocr.so
|