From 6a258b71a9f33c06c206c9742e3415d394ff6687 Mon Sep 17 00:00:00 2001 From: imbytecat Date: Tue, 8 Jul 2025 00:01:44 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=BC=95=E5=85=A5nodejs=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E6=9E=84=E5=BB=BA=E6=B5=81=E7=A8=8B=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加名称标签并引入nodejs作为依赖来增强构建流程的可读性和功能性。 --- .gitea/workflows/build.yaml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) 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: