From a5518de292a703265b9f7d637b4633a520690ccc Mon Sep 17 00:00:00 2001 From: Benjamin Bolte Date: Thu, 31 Oct 2024 16:35:05 -0700 Subject: [PATCH] publishing workflow --- .github/workflows/publish.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index eed8d74..b10800b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -40,6 +40,13 @@ jobs: run: | python -m pip install --upgrade pip pip install maturin build wheel + if [ "$RUNNER_OS" == "Linux" ]; then + sudo apt-get update + sudo apt-get install -y protobuf-compiler + elif [ "$RUNNER_OS" == "macOS" ]; then + brew install protobuf + fi + shell: bash - name: Build package run: maturin build --release --strip --out dist --manifest-path pyklang/Cargo.toml @@ -86,7 +93,7 @@ jobs: - name: Install dependencies run: | sudo apt-get update - sudo apt-get install -y libudev-dev pkg-config + sudo apt-get install -y libudev-dev pkg-config protobuf-compiler - name: Cache Cargo registry uses: actions/cache@v2