diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 9125d92..f927da8 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -13,15 +13,22 @@ jobs: container: image: greyltc/archlinux-aur:yay steps: - - run: | - yay -Syu --noconfirm cmake python - - run: | + - name: Install dependencies + run: | + yay -Syu --noconfirm cmake python nodejs + + - name: Clone repository + run: | git clone https://github.com/swigger/wechat-ocr.git wcocr - - run: | - # fix: https://github.com/abseil/abseil-cpp/issues/1206 + + - name: Fix Protobuf version + run: | sed -i 's/v3.21.0/v3.21.2/g' wcocr/CMakeLists.txt - - run: | + + - name: Build + run: | mkdir -p wcocr/build && cd wcocr/build && cmake .. && make -j$(nproc) + - name: Upload artifacts uses: christopherhx/gitea-upload-artifact@v4 with: