Skip to content

Commit 2b91573

Browse files
Sanketha-Crjoerunderootroot
authored
S390x changes (#20)
Signed-off-by: Joe Runde <Joseph.Runde@ibm.com> Signed-off-by: Sanketha <Sanketha.cr@ibm.com> Signed-off-by: root <root@Sanketha-ifm1.fyre.ibm.com> Co-authored-by: Joe Runde <Joseph.Runde@ibm.com> Co-authored-by: root <root@Sanketha-ifm1.fyre.ibm.com> Co-authored-by: root <root@x86-ifm1.fyre.ibm.com>
1 parent 3222950 commit 2b91573

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,4 @@ jobs:
9797
cache-from: type=registry,ref=${{ env.CACHE_IMAGE }}
9898
cache-to: ${{ env.CACHE_TO }}
9999
push: ${{ github.event_name != 'pull_request' }}
100-
platforms: linux/amd64
100+
platforms: linux/amd64,linux/s390x

Dockerfile

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,24 @@ ARG PROTOC_VERSION=27.1
55

66
## Rust builder ################################################################
77
# Specific debian version so that compatible glibc version is used
8-
FROM rust:1.79-bullseye as rust-builder
8+
FROM rust:1.81 as rust-builder
99
ARG PROTOC_VERSION
1010

1111
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
1212

1313
# Install protoc, no longer included in prost crate
1414
RUN cd /tmp && \
15-
curl -L -O https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VERSION}/protoc-${PROTOC_VERSION}-linux-x86_64.zip && \
16-
unzip protoc-*.zip -d /usr/local && rm protoc-*.zip
15+
if [ "$(uname -m)" = "s390x" ]; then \
16+
apt update && \
17+
apt install -y cmake clang libclang-dev curl unzip && \
18+
curl -L -O https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VERSION}/protoc-${PROTOC_VERSION}-linux-s390_64.zip; \
19+
elif [ "$(uname -m)" = "x86_64" ]; then \
20+
curl -L -O https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VERSION}/protoc-${PROTOC_VERSION}-linux-x86_64.zip; \
21+
fi && \
22+
unzip protoc-*.zip -d /usr/local && \
23+
rm protoc-*.zip
24+
25+
ENV LIBCLANG_PATH=/usr/lib/llvm-14/lib/
1726

1827
WORKDIR /usr/src
1928

rust-toolchain.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[toolchain]
2-
channel = "1.79"
3-
components = ["rustfmt", "clippy"]
2+
channel = "1.81"
3+
components = ["rustfmt", "clippy"]

0 commit comments

Comments
 (0)