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