Skip to content

Commit

Permalink
fix: protocol buffer のインストールスクリプトを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
kei01234kei committed Nov 16, 2023
1 parent 61652e8 commit 3f452fb
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@ jobs:
with:
go-version: "1.21.2"

# 引用: https://gist.github.com/diegopacheco/cd795d36e6ebcd2537cd18174865887b
# 参照
# https://github.com/protocolbuffers/protobuf/blob/main/cmake/README.md#linux-builds
# https://protobuf.dev/getting-started/gotutorial/
- name: Install Protobuf
run: |
sudo apt-get install autoconf automake libtool curl make g++ unzip -y
sudo apt-get install make -y
git clone [email protected]:protocolbuffers/protobuf.git
cd protobuf
git submodule update --init --recursive
./autogen.sh
./configure
make
make check
sudo make install
sudo ldconfig
cmake .
cmake --build . --parallel 10
ctest --verbose
sudo cmake --install .
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
- name: Run protoc
run: |
Expand Down

0 comments on commit 3f452fb

Please sign in to comment.