Skip to content

Commit

Permalink
Install protobuf-compiler from debian stable rather than sid
Browse files Browse the repository at this point in the history
Note: `--experimental_allow_proto3_optional` requires protobuf 3.15 or later

google/protobuf-gradle-plugin#415 (comment)
  • Loading branch information
nyetwurk committed Sep 11, 2023
1 parent 458d807 commit b263dfd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,21 @@ jobs:
rust_stable=$(rustc --version | awk '{print $2}')
echo "RUST_STABLE=$rust_stable" | tee -a $GITHUB_ENV
- if: runner.os == 'Linux'
- name: Install build requirements
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y \
gnupg \
ntp \
libudev-dev \
libsasl2-dev \
libssl-dev \
libzstd-dev
sudo touch /etc/apt/sources.list.d/debian.list
echo 'deb http://ftp.debian.org/debian sid main' | sudo tee -a /etc/apt/sources.list.d/debian.list
echo 'deb http://ftp.debian.org/debian stable main' | sudo tee -a /etc/apt/sources.list.d/debian.list
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 648ACFD622F3D138
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0E98404D386FA1D9
sudo apt-get update
sudo apt-get install -y protobuf-compiler
sudo apt-get satisfy -f -y "protobuf-compiler (>=3.15)"
- uses: actions-rs/toolchain@v1
with:
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,21 @@ jobs:
rust_stable=$(rustc --version | awk '{print $2}')
echo "RUST_STABLE=$rust_stable" | tee -a $GITHUB_ENV
- if: runner.os == 'Linux'
- name: Install build requirements
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y \
gnupg \
ntp \
libudev-dev \
libsasl2-dev \
libssl-dev \
libzstd-dev
sudo touch /etc/apt/sources.list.d/debian.list
echo 'deb http://ftp.debian.org/debian sid main' | sudo tee -a /etc/apt/sources.list.d/debian.list
echo 'deb http://ftp.debian.org/debian stable main' | sudo tee -a /etc/apt/sources.list.d/debian.list
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 648ACFD622F3D138
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0E98404D386FA1D9
sudo apt-get update
sudo apt-get install -y protobuf-compiler
sudo apt-get satisfy -f -y "protobuf-compiler (>=3.15)"
- uses: actions-rs/toolchain@v1
with:
Expand Down

0 comments on commit b263dfd

Please sign in to comment.