From 043af4d6ecaa1fb6dbbeee4ca7da5d9634b1ce88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Folles=C3=B8?= Date: Wed, 24 Jun 2026 14:59:28 +0200 Subject: [PATCH] Fix gen-docs CI: run protoc-gen-doc on host instead of stale container The gen-docs workflow ran inside pseudomuto/protoc-gen-doc:1.5.1, whose ~4-year-old Alpine/musl base can no longer host the Node 24 binary the runner injects for JS actions (actions/checkout), so the job died at checkout with: Error relocating .../node24_alpine/bin/node: pthread_getname_np: symbol not found Drop the container and install protoc + protoc-gen-doc directly on ubuntu-latest (Option 1 from #271). protoc-gen-doc is pinned to v1.5.1 to match the previous container, so the generated HTML is identical. Go's bin dir is added to PATH so protoc can find the plugin. Fixes #271 Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/gen-docs.yaml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/gen-docs.yaml b/.github/workflows/gen-docs.yaml index 1fb3818c..99cf3978 100644 --- a/.github/workflows/gen-docs.yaml +++ b/.github/workflows/gen-docs.yaml @@ -8,21 +8,18 @@ on: jobs: generate-documentation: runs-on: ubuntu-latest - container: - image: pseudomuto/protoc-gen-doc:1.5.1 steps: - name: Checkout source uses: actions/checkout@v4 - - name: Print path - run: echo "${{ github.workspace }}/protobuf_definitions" - - name: Create output configDirectory + - name: Install protoc + protoc-gen-doc + run: | + sudo apt-get update && sudo apt-get install -y protobuf-compiler + go install github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc@v1.5.1 + echo "$(go env GOPATH)/bin" >> "$GITHUB_PATH" + - name: Create output directory run: mkdir -p docs - - name: List files - run: ls -la - name: Generate documentation run: protoc --doc_out=docs --doc_opt=html,protocol.html --proto_path=protobuf_definitions protobuf_definitions/*.proto - - name: List doc files - run: ls -la docs - name: Publish artifacts uses: fixpoint/azblob-upload-artifact@v4 with: