From 55958c514b95b1aec7139cb5e1ec95a26632e195 Mon Sep 17 00:00:00 2001 From: Alex Zenla Date: Thu, 21 Mar 2024 18:20:02 -0700 Subject: [PATCH] krata: fix darwin builds of kratactl --- .github/workflows/client.yml | 6 ++++++ hack/ci/install-mac-deps.sh | 4 ++++ 2 files changed, 10 insertions(+) create mode 100755 hack/ci/install-mac-deps.sh diff --git a/.github/workflows/client.yml b/.github/workflows/client.yml index e610e62..aff2a5c 100644 --- a/.github/workflows/client.yml +++ b/.github/workflows/client.yml @@ -18,6 +18,9 @@ jobs: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable - run: ./hack/ci/install-deps.sh + if: ${{ matrix.os.name == 'linux' }} + - run: ./hack/ci/install-mac-deps.sh + if: ${{ matrix.os.name == 'darwin' }} - run: ./hack/build/cargo.sh build --bin kratactl test: runs-on: ubuntu-latest @@ -36,4 +39,7 @@ jobs: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable - run: ./hack/ci/install-deps.sh + if: ${{ matrix.os.name == 'linux' }} + - run: ./hack/ci/install-mac-deps.sh + if: ${{ matrix.os.name == 'darwin' }} - run: ./hack/build/cargo.sh test --bin kratactl diff --git a/hack/ci/install-mac-deps.sh b/hack/ci/install-mac-deps.sh new file mode 100755 index 0000000..1406098 --- /dev/null +++ b/hack/ci/install-mac-deps.sh @@ -0,0 +1,4 @@ +#!/bin/sh +set -e + +brew install protobuf