From acd2a0a4e7a36d61a5fedd91518667c1712c230a Mon Sep 17 00:00:00 2001 From: Baodi Shi Date: Tue, 20 Jun 2023 23:21:29 +0800 Subject: [PATCH] Fix ci failed on macos env. --- .github/workflows/ci-pr-validation.yaml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci-pr-validation.yaml b/.github/workflows/ci-pr-validation.yaml index 259a277b..461e3f4d 100644 --- a/.github/workflows/ci-pr-validation.yaml +++ b/.github/workflows/ci-pr-validation.yaml @@ -49,8 +49,11 @@ jobs: - name: Install deps (macOS) if: ${{ startsWith(matrix.os, 'macos') }} - run: - brew install pkg-config wireshark protobuf + run: | + # Install protobuf v21.12 + wget https://raw.githubusercontent.com/Homebrew/homebrew-core/2d47ed2eac09d59ffc2c92b1d804f1c232188c88/Formula/protobuf.rb + brew install --formula ./protobuf.rb + brew install pkg-config wireshark - name: Build wireshark plugin run: | @@ -267,7 +270,11 @@ jobs: uses: actions/checkout@v3 - name: Install dependencies - run: brew install openssl protobuf boost zstd snappy googletest + run: | + # Install protobuf v21.12 + wget https://raw.githubusercontent.com/Homebrew/homebrew-core/2d47ed2eac09d59ffc2c92b1d804f1c232188c88/Formula/protobuf.rb + brew install --formula ./protobuf.rb + brew install openssl boost zstd snappy googletest - name: Configure (default) shell: bash