From b7102f0e5549182f3e5ed906825321e26a863f65 Mon Sep 17 00:00:00 2001 From: Tarek Ziade Date: Mon, 4 May 2026 14:19:43 +0200 Subject: [PATCH] ci: install protoc in publish workflow webnn-onnx-utils 0.1.1's build script invokes prost-build to compile ONNX protos, which requires the protoc compiler. The macOS runner does not ship with protoc, so the wheel build failed with: failed to compile ONNX protos with prost-build: Could not find `protoc`. Add the arduino/setup-protoc action before maturin runs so all three runners (ubuntu, macos, windows) have protoc on PATH. --- .github/workflows/publish.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index dea38de..c2fe5c4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -27,6 +27,11 @@ jobs: - name: Set up Rust uses: dtolnay/rust-toolchain@stable + - name: Install protoc + uses: arduino/setup-protoc@v3 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + - name: Install maturin run: pip install maturin