Skip to content

Commit f8fb14f

Browse files
authored
ci: install protoc from apt instead of arduino/setup-protoc (#2268)
The setup-protoc action downloads protoc via unauthenticated GitHub API requests, which share a rate limit across all runners on the same IP and intermittently fail with "API rate limit exceeded". Our proto files are all plain proto3, so the protobuf-compiler package from the Ubuntu archive is sufficient and involves no GitHub API at all.
2 parents 74ab901 + 4ab674d commit f8fb14f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎.github/workflows/c-bindings.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
- uses: dtolnay/rust-toolchain@stable
4747

4848
- name: Install Protoc
49-
uses: arduino/setup-protoc@v2
49+
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
5050

5151
- name: Set up cargo cache
5252
uses: actions/cache@v3

‎.github/workflows/golang-bindings.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
run: sudo apt-get install -y tcl8.6-dev
4343

4444
- name: Install Protoc
45-
uses: arduino/setup-protoc@v2
45+
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
4646

4747
- name: Set up cargo cache
4848
uses: actions/cache@v3

0 commit comments

Comments
 (0)