From dfff7936f2bad4faa02c3b1410929cf83977fb65 Mon Sep 17 00:00:00 2001 From: dobefore <46564102+dobefore@users.noreply.github.com> Date: Sun, 20 Nov 2022 14:16:32 +0800 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ab58ee2..6de379c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -129,17 +129,19 @@ jobs: # clone and patch anki library - name: Clone patch Anki run: sh ./scripts/clone_patch_anki - + - name: Install Protoc - uses: arduino/setup-protoc@v1 - with: - version: '3.x' + run: | + PB_REL="https://github.com/protocolbuffers/protobuf/releases" + curl -LO $PB_REL/download/v3.15.8/protoc-3.15.8-linux-x86_64.zip + mkdir -p $HOME/protoc + unzip protoc-3.15.8-linux-x86_64.zip -d $HOME/protoc + - name: Build - uses: actions-rs/cargo@v1 - with: - command: build - args: --release --features tls + run: | + export PATH="$PATH:$HOME/protoc/bin" + cargo build --release --features tls - name: Strip binaries (ankisyncd) run: strip target/release/ankisyncd