Skip to content

Commit

Permalink
Add Cross.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
aleasims committed Dec 9, 2024
1 parent 5cfe57f commit 7c74f89
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Cross.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[build.env]
passthrough = ["BUF_CACHE_DIR=/tmp"]

[target.x86_64-unknown-linux-gnu]
pre-build = [
"apt-get update",
"apt-get install -y openssl ca-certificates pkg-config cmake libssl-dev curl",
"curl -sSL https://github.com/bufbuild/buf/releases/download/v1.47.2/buf-Linux-x86_64 -o /usr/local/bin/buf",
"chmod +x /usr/local/bin/buf",
"buf --version",
"curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v25.1/protoc-v25.1-linux-x86_64.zip -o /tmp/protoc.zip",
"unzip /tmp/protoc.zip -d /usr/local",
"protoc --version",
]

[target.aarch64-unknown-linux-gnu]
pre-build = [
"apt-get update",
"apt-get install -y openssl ca-certificates pkg-config cmake libssl-dev curl",
"curl -sSL https://github.com/bufbuild/buf/releases/download/v1.47.2/buf-Linux-aarch64 -o /usr/local/bin/buf",
"chmod +x /usr/local/bin/buf",
"buf --version",
"curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v25.1/protoc-v25.1-linux-aarch_64.zip -o /tmp/protoc.zip",
"unzip /tmp/protoc.zip -d /usr/local",
"protoc --version",
]

0 comments on commit 7c74f89

Please sign in to comment.