krata: fix darwin builds of kratactl

This commit is contained in:
Alex Zenla 2024-03-21 18:20:02 -07:00
parent 597a1433b3
commit 55958c514b
No known key found for this signature in database
GPG Key ID: 067B238899B51269
2 changed files with 10 additions and 0 deletions

View File

@ -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

4
hack/ci/install-mac-deps.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
set -e
brew install protobuf