Skip to content

Commit

Permalink
capnp release pinning is a nightmare actually
Browse files Browse the repository at this point in the history
capnp does not publish release binaries for linux. i hope this caches
  • Loading branch information
mumbleskates committed Mar 17, 2024
1 parent 27bc270 commit a5276fe
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
cargo fmt --check
- name: build
- name: set up codegen dependencies
shell: bash
run: |
Expand All @@ -54,11 +54,21 @@ jobs:
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
mv ./flatc /usr/local/bin
)
sudo apt-get install -y capnproto=0.9.2-3
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
make -j
mv ./capnp /usr/local/bin
)
- 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 a5276fe

Please sign in to comment.