Skip to content

Commit

Permalink
Merge pull request sigp#3546 from divagant-martian/cross-update
Browse files Browse the repository at this point in the history
Update cross to install protoc
  • Loading branch information
AgeManning authored Sep 7, 2022
2 parents d1a9635 + 8462807 commit ab8dad6
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cross.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[target.x86_64-unknown-linux-gnu]
pre-build = ["apt-get install -y cmake clang-3.9"]
dockerfile = './scripts/cross/x86_64-unknown-linux-gnu.dockerfile'

[target.aarch64-unknown-linux-gnu]
pre-build = ["apt-get install -y cmake clang-3.9"]
dockerfile = './scripts/cross/aarch64-unknown-linux-gnu.dockerfile'
14 changes: 14 additions & 0 deletions scripts/cross/aarch64-unknown-linux-gnu.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
ARG CROSS_BASE_IMAGE
FROM $CROSS_BASE_IMAGE

RUN apt-get update -y && apt-get upgrade -y

RUN apt-get install -y unzip && \
PB_REL="https://github.com/protocolbuffers/protobuf/releases" && \
curl -L $PB_REL/download/v3.15.8/protoc-3.15.8-linux-aarch_64.zip -o protoc.zip && \
unzip protoc.zip -d /usr && \
chmod +x /usr/bin/protoc

RUN apt-get install -y cmake clang-3.9

ENV PROTOC=/usr/bin/protoc
14 changes: 14 additions & 0 deletions scripts/cross/x86_64-unknown-linux-gnu.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
ARG CROSS_BASE_IMAGE
FROM $CROSS_BASE_IMAGE

RUN apt-get update -y && apt-get upgrade -y

RUN apt-get install -y unzip && \
PB_REL="https://github.com/protocolbuffers/protobuf/releases" && \
curl -L $PB_REL/download/v3.15.8/protoc-3.15.8-linux-x86_64.zip -o protoc.zip && \
unzip protoc.zip -d /usr && \
chmod +x /usr/bin/protoc

RUN apt-get install -y cmake clang-3.9

ENV PROTOC=/usr/bin/protoc

0 comments on commit ab8dad6

Please sign in to comment.