Use third-party action to get protoc

This commit is contained in:
Jim Gustafson 2026-02-06 17:39:33 -08:00 committed by GitHub
parent 914d3ecd18
commit c492e9bb8a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 8 deletions

View File

@ -171,9 +171,8 @@ jobs:
- run: rustup toolchain install $(cat rust-toolchain) --profile minimal --target aarch64-pc-windows-msvc
- name: Install protoc
run: choco install protoc
shell: cmd
- name: Install Protoc
uses: arduino/setup-protoc@v3
- run: cargo install dump_syms

View File

@ -121,11 +121,12 @@ jobs:
run: |
if [[ "${{ matrix.os }}" == macos-* ]]; then
brew install protobuf coreutils
elif [[ "${{ matrix.os }}" == windows-* ]]; then
choco install protoc
elif [[ "${{ matrix.os }}" == ubuntu-* ]]; then
sudo add-apt-repository ppa:pipewire-debian/pipewire-upstream && sudo apt-get update && sudo apt-get install -y protobuf-compiler libpulse-dev libpulse0 pipewire && systemctl --user daemon-reload && systemctl --user --now enable pipewire pipewire-pulse
fi
- name: Install Protoc for Windows
uses: arduino/setup-protoc@v3
if: ${{ startsWith(matrix.os, 'windows-') }}
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
@ -162,11 +163,12 @@ jobs:
run: |
if [[ "${{ matrix.os }}" == macos-* ]]; then
brew install protobuf coreutils
elif [[ "${{ matrix.os }}" == windows-* ]]; then
choco install protoc
elif [[ "${{ matrix.os }}" == ubuntu-* ]]; then
sudo apt-get update && sudo apt-get install -y protobuf-compiler libpulse-dev
fi
- name: Install Protoc for Windows
uses: arduino/setup-protoc@v3
if: ${{ startsWith(matrix.os, 'windows-') }}
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:

View File

@ -16,7 +16,7 @@ The following is derived from the depot_tools tutorial: https://commondatastorag
### Protobuf
The protobuf compiler, protoc, is needed to build RingRTC. Installation is platform specific and can be found [here](https://grpc.io/docs/protoc-installation/).
The protobuf compiler, protoc, is needed to build RingRTC. Installation is platform specific and can be found [here](https://protobuf.dev/installation/).
### Rust Components