Skip to content

Commit

Permalink
Ubuntu lunar has protobuf 3.21. Don't use debian any more to get it.
Browse files Browse the repository at this point in the history
--experimental_allow_proto3_optional requires protbuf 3.15 or later

google/protobuf-gradle-plugin#415 (comment)
  • Loading branch information
nyetwurk committed Sep 11, 2023
1 parent e1fc4af commit 7f67cf0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 17 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,16 @@ jobs:
- if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo aptitude 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
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
echo 'deb http://azure.archive.ubuntu.com/ubuntu lunar main' | sudo tee -a /etc/apt/sources.list.d/lunar.list
sudo aptitude update
sudo aptitude satisfy -y "protobuf-compiler (>=3.16)" -t "n=lunar"
- uses: actions-rs/toolchain@v1
with:
Expand Down
14 changes: 5 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,16 @@ jobs:
- if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y \
sudo aptitude update
sudo aptitude 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
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
echo 'deb http://azure.archive.ubuntu.com/ubuntu lunar main' | sudo tee -a /etc/apt/sources.list.d/lunar.list
sudo aptitude update
sudo aptitude satisfy -y "protobuf-compiler (>=3.16)" -t "n=lunar"
- uses: actions-rs/toolchain@v1
with:
Expand Down

0 comments on commit 7f67cf0

Please sign in to comment.