Skip to content

Commit

Permalink
harden the codegen tools in the CI config, with updates and more pinning
Browse files Browse the repository at this point in the history
  • Loading branch information
mumbleskates committed Mar 17, 2024
1 parent c51ae66 commit 16a6a6b
Showing 1 changed file with 30 additions and 10 deletions.
40 changes: 30 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,42 @@ jobs:
cargo fmt --check
- name: build
- name: set up codegen dependencies
shell: bash
run: |
wget "https://github.com/protocolbuffers/protobuf/releases/download/v23.3/protoc-23.3-linux-x86_64.zip" -O protoc.zip
unzip protoc.zip
chmod +x bin/protoc
mv bin/protoc /usr/local/bin
mkdir proto
(
cd proto
wget "https://github.com/protocolbuffers/protobuf/releases/download/v26.0/protoc-26.0-linux-x86_64.zip" -O protoc.zip
unzip protoc.zip
chmod +x bin/protoc
mv bin/protoc /usr/local/bin/
)
protoc --version
wget "https://github.com/google/flatbuffers/releases/download/v23.5.26/Linux.flatc.binary.clang++-12.zip" -O flatbuffers
unzip flatbuffers
chmod +x flatc
mv flatc /usr/local/bin
mkdir flatbuffers
(
cd flatbuffers
wget "https://github.com/google/flatbuffers/releases/download/v23.5.26/Linux.flatc.binary.clang++-12.zip" -O flatbuffers.zip
unzip flatbuffers.zip
chmod +x ./flatc
mv ./flatc /usr/local/bin
)
flatc --version
sudo apt-get install -y capnproto libprotobuf-dev
wget "https://capnproto.org/capnproto-c++-1.0.2.tar.gz" -O capnproto.tar.gz
tar zxf capnproto.tar.gz
(
cd capnproto-c++-1.0.2
./configure
sudo make -j install
)
capnp --version
- name: build
shell: bash
run: |
cargo build --benches --features regenerate-capnp,regenerate-flatbuffers,regenerate-prost
- name: check generated code
Expand Down

0 comments on commit 16a6a6b

Please sign in to comment.