Install protoc on workflow (#352)

* install protoc on workflow

(cherry picked from commit 317c7906d968eeb6726ab4a9076a8bf64bdf4a6e)

* Bump setup-protoc to v3 and 27.2

---------

Co-authored-by: Roei Erez <roeierez@gmail.com>
This commit is contained in:
Ross Savage
2024-07-01 17:22:41 +02:00
committed by GitHub
parent 15a243251e
commit c93b10534d
7 changed files with 44 additions and 8 deletions

View File

@@ -49,6 +49,12 @@ jobs:
rustup target add ${{ matrix.target }}
cargo install cargo-ndk
- name: Install Protoc
uses: arduino/setup-protoc@v3
with:
version: "27.2"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: Swatinem/rust-cache@v2
with:
workspaces: lib

View File

@@ -47,6 +47,12 @@ jobs:
rustup target add ${{ matrix.target }}
cargo install cargo-lipo
- name: Install Protoc
uses: arduino/setup-protoc@v3
with:
version: "27.2"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: Swatinem/rust-cache@v2
with:
workspaces: lib

View File

@@ -47,6 +47,12 @@ jobs:
rustup toolchain install stable --profile minimal
rustup target add ${{ matrix.target }}
- name: Install Protoc
uses: arduino/setup-protoc@v3
with:
version: "27.2"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: Swatinem/rust-cache@v2
with:
workspaces: lib

View File

@@ -46,6 +46,12 @@ jobs:
rustup toolchain install stable --profile minimal
rustup target add ${{ matrix.target }}
- name: Install Protoc
uses: arduino/setup-protoc@v3
with:
version: "27.2"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install gcc-aarch64-linux-gnu
if: matrix.target == 'aarch64-unknown-linux-gnu'
run: |

View File

@@ -46,6 +46,12 @@ jobs:
rustup toolchain install stable --profile minimal
rustup target add ${{ matrix.target }}
- name: Install Protoc
uses: arduino/setup-protoc@v3
with:
version: "27.2"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: Swatinem/rust-cache@v2
with:
workspaces: lib

View File

@@ -72,6 +72,12 @@ jobs:
rustup set auto-self-update disable
rustup toolchain install stable --profile minimal
- name: Install Protoc
uses: arduino/setup-protoc@v3
with:
version: "27.2"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build Kotlin binding
if: ${{ inputs.kotlin }}
working-directory: lib/bindings

View File

@@ -41,9 +41,9 @@ jobs:
cli -> target
- name: Install Protoc
uses: arduino/setup-protoc@v2
uses: arduino/setup-protoc@v3
with:
version: "23.4"
version: "27.2"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Check Rust Clippy
@@ -66,9 +66,9 @@ jobs:
cli -> target
- name: Install Protoc
uses: arduino/setup-protoc@v2
uses: arduino/setup-protoc@v3
with:
version: "23.4"
version: "27.2"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run sdk-core tests
@@ -89,9 +89,9 @@ jobs:
cli -> target
- name: Install Protoc
uses: arduino/setup-protoc@v2
uses: arduino/setup-protoc@v3
with:
version: "23.4"
version: "27.2"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build bindings
@@ -227,9 +227,9 @@ jobs:
lib -> target
- name: Install Protoc
uses: arduino/setup-protoc@v2
uses: arduino/setup-protoc@v3
with:
version: "23.4"
version: "27.2"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: test-new-project-with-sdk-dependency