From 48e265e08fc57eaab9770e8a1fc8d82a7be1fa32 Mon Sep 17 00:00:00 2001 From: jlanson Date: Mon, 12 Aug 2024 11:12:33 -0400 Subject: [PATCH] wip --- .github/workflows/hipcheck.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/hipcheck.yml b/.github/workflows/hipcheck.yml index 8380f67d..59309300 100644 --- a/.github/workflows/hipcheck.yml +++ b/.github/workflows/hipcheck.yml @@ -33,10 +33,19 @@ jobs: with: key: ${{ matrix.os }} - name: Install protoc dependency - - if: runner.os == 'MacOS' - run: sudo brew install protobuf - - if: runner.os == 'Linux' - run: sudo apt-get install -y protobuf-compiler + run: | + if [ "$RUNNER_OS" == "Linux" ]; then + sudo apt-get install -y protobuf-compiler + elif [ "$RUNNER_OS" == "MacOS" ]; then + sudo brew install protobuf + else + echo "$RUNNER_OS not supported" + exit 1 + fi + # - if: runner.os == 'MacOS' + # run: sudo brew install protobuf + # - if: runner.os == 'Linux' + # run: sudo apt-get install -y protobuf-compiler - name: Dependency Tree run: cargo tree - name: Build