Skip to content

Commit

Permalink
Add prebuild hook to Cross.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
dzania committed Jul 27, 2023
1 parent 0df83d3 commit 41d5d5a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Cross.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ image = "ghcr.io/defguard/cross:x86_64-unknown-linux-gnu"
image = "ghcr.io/defguard/cross:armv7-unknown-linux-gnueabihf"

[target.x86_64-unknown-freebsd]
image = "x86_64-unknown-freebsd-cross-v3:latest"
pre-build = ["pkg install rust curl protobuf"]
pre-build = [" apt-get update && apt-get install --assume-yes unzip && PB_REL='https://github.com/protocolbuffers/protobuf/releases' && PB_VERSION='3.20.0' && curl -LO $PB_REL/download/v$PB_VERSION/protoc-$PB_VERSION-linux-x86_64.zip && unzip protoc-$PB_VERSION-linux-x86_64.zip bin/protoc include/google/* -d /usr"]

0 comments on commit 41d5d5a

Please sign in to comment.