From 871d66882096738c1f7d0c4ef62305b1a8db6fef Mon Sep 17 00:00:00 2001 From: limuy Date: Sun, 16 Jun 2024 14:58:50 +0800 Subject: [PATCH] ci:fix protobuf installation --- .github/workflows/rust_linux.yml | 4 ++-- .github/workflows/rust_macos.yml | 4 ++-- .github/workflows/rust_windows.yml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/rust_linux.yml b/.github/workflows/rust_linux.yml index 632ca65..5d0db30 100644 --- a/.github/workflows/rust_linux.yml +++ b/.github/workflows/rust_linux.yml @@ -17,8 +17,8 @@ jobs: - uses: actions/checkout@v4 - name: Config Env run: rustup install nightly && rustup default nightly && rustup component add rustfmt - - name: Install Protobuf - run: sudo apt-get install protobuf-compiler -y + - name: Install Protoc + uses: arduino/setup-protoc@v2 - name: Build run: cd gdrust && cargo build --all - name: Build Release diff --git a/.github/workflows/rust_macos.yml b/.github/workflows/rust_macos.yml index 762e1cf..2bacded 100644 --- a/.github/workflows/rust_macos.yml +++ b/.github/workflows/rust_macos.yml @@ -17,8 +17,8 @@ jobs: - uses: actions/checkout@v4 - name: Config Env run: rustup install nightly && rustup default nightly - - name: Install Protobuf - run: sudo brew install protobuf + - name: Install Protoc + uses: arduino/setup-protoc@v2 - name: Build run: cd gdrust && cargo build --all - name: Build Release diff --git a/.github/workflows/rust_windows.yml b/.github/workflows/rust_windows.yml index e54f55a..325bcc1 100644 --- a/.github/workflows/rust_windows.yml +++ b/.github/workflows/rust_windows.yml @@ -17,8 +17,8 @@ jobs: - uses: actions/checkout@v4 - name: Config Env run: rustup install nightly && rustup default nightly - - name: Install Protobuf - run: winget install protobuf + - name: Install Protoc + uses: arduino/setup-protoc@v2 - name: Build run: cd gdrust && cargo build --all - name: Build Release