From 1738db81f58232d6f5c3c14b0e9f4d3572d43b0b Mon Sep 17 00:00:00 2001 From: Fangyin Cheng Date: Fri, 4 Oct 2024 22:47:55 +0800 Subject: [PATCH] fix(ci): Fix protobuf error --- .github/workflows/release-python.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-python.yml b/.github/workflows/release-python.yml index 51c3150..8d3225b 100644 --- a/.github/workflows/release-python.yml +++ b/.github/workflows/release-python.yml @@ -45,9 +45,10 @@ jobs: sccache: 'true' # manylinux: auto manylinux: ${{ matrix.platform.target == 'aarch64' && '2_24' || 'auto' }} + docker-options: | + -e PROTOC_ARCH=${{ matrix.platform.target }} before-script-linux: | PROTOC_VERSION="28.2" - PROTOC_ARCH=${{ matrix.target }} if [ "$PROTOC_ARCH" = "i686" ]; then PROTOC_ARCH="x86_32" elif [ "$PROTOC_ARCH" = "aarch64" ]; then @@ -101,9 +102,10 @@ jobs: args: --release --out dist --find-interpreter --manifest-path bindings/lyric-py/Cargo.toml sccache: 'true' manylinux: musllinux_1_2 + docker-options: | + -e PROTOC_ARCH=${{ matrix.platform.target }} before-script-linux: | PROTOC_VERSION="28.2" - PROTOC_ARCH=${{ matrix.target }} if [ "$PROTOC_ARCH" = "i686" ]; then PROTOC_ARCH="x86_32" elif [ "$PROTOC_ARCH" = "aarch64" ]; then