File tree Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 34
34
platforms : ${{ env.PLATFORMS }}
35
35
push : ${{ env.PUSH }}
36
36
tags : |
37
- ${{ env.DOCKER_NAMESPACE }}/matrix-hookshot:latest
37
+ ${{ env.DOCKER_NAMESPACE }}/matrix-hookshot:latest
38
+
39
+ # arm64 builds OOM without the git fetch setting. c.f.
40
+ # https://github.com/rust-lang/cargo/issues/10583
41
+ build-args : |
42
+ CARGO_NET_GIT_FETCH_WITH_CLI=true
Original file line number Diff line number Diff line change 36
36
push : true
37
37
tags : |
38
38
${{ env.DOCKER_NAMESPACE }}/matrix-hookshot:${{ env.RELEASE_VERSION }}
39
+
40
+ # arm64 builds OOM without the git fetch setting. c.f.
41
+ # https://github.com/rust-lang/cargo/issues/10583
42
+ build-args : |
43
+ CARGO_NET_GIT_FETCH_WITH_CLI=true
Original file line number Diff line number Diff line change @@ -7,6 +7,11 @@ FROM node:16 AS builder
7
7
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --profile minimal
8
8
ENV PATH="/root/.cargo/bin:${PATH}"
9
9
10
+ # arm64 builds consume a lot of memory if `CARGO_NET_GIT_FETCH_WITH_CLI` is not
11
+ # set to true, so we expose it as a build-arg.
12
+ ARG CARGO_NET_GIT_FETCH_WITH_CLI=false
13
+ ENV CARGO_NET_GIT_FETCH_WITH_CLI=$CARGO_NET_GIT_FETCH_WITH_CLI
14
+
10
15
# Needed to build rust things for matrix-sdk-crypto-nodejs
11
16
# See https://github.com/matrix-org/matrix-rust-sdk-bindings/blob/main/crates/matrix-sdk-crypto-nodejs/release/Dockerfile.linux#L5-L6
12
17
RUN apt-get update && apt-get install -y build-essential cmake time
You can’t perform that action at this time.
0 commit comments