From e07e3b2487d4d61a660f43b08171f660a1d23658 Mon Sep 17 00:00:00 2001 From: ktechmidas Date: Tue, 15 Oct 2024 08:21:52 +0300 Subject: [PATCH] protoc mac --- .github/workflows/release.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4202a756..789663ec 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -65,6 +65,12 @@ jobs: run: curl -Lo /tmp/protoc.zip https://github.com/protocolbuffers/protobuf/releases/download/v22.2/protoc-22.2-linux-x86_64.zip && sudo unzip -f /tmp/protoc.zip -d /usr/local && rm /tmp/protoc.zip env: PROTOC: /usr/local/bin/protoc + + - name: Install protoc (Mac x64) + if: ${{ matrix.target == 'x86_64-apple-darwin' }} + run: curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v25.2/protoc-25.2-osx-x86_64.zip && sudo unzip -o $PROTOC_ZIP -d /usr/local bin/protoc && sudo unzip -o $PROTOC_ZIP -d /usr/local 'include/*' && rm -f $PROTOC_ZIP + env: + PROTOC: /usr/local/bin/protoc - name: Build project run: cargo build --release --target ${{ matrix.target }}