File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change
1
+ # [target.aarch64-unknown-linux-gnu]
2
+ # pre-build = [
3
+ # "dpkg --add-architecture $CROSS_DEB_ARCH",
4
+ # "apt-get update",
5
+ # "apt-get install --assume-yes nasm:$CROSS_DEB_ARCH",
6
+ # ]
7
+ [target .x86_64-unknown-linux-musl ]
8
+ pre-build = [
9
+ " dpkg --add-architecture $CROSS_DEB_ARCH" ,
10
+ " apt-get update" ,
11
+ " apt-get install --assume-yes nasm" ,
12
+ ]
13
+ # [target.armv7-unknown-linux-musleabihf]
14
+ # pre-build = [
15
+ # "dpkg --add-architecture $CROSS_DEB_ARCH",
16
+ # "apt-get update",
17
+ # "apt-get install --assume-yes nasm:$CROSS_DEB_ARCH",
18
+ # ]
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ docker-all:
33
33
34
34
install :
35
35
RUN apt-get update -qq
36
+ # Libraries that we install here, may also need to be added to `Cross.toml`
36
37
# NASM is required for the image library
37
38
RUN apt install nasm
38
39
RUN rustup component add clippy
@@ -42,7 +43,7 @@ install:
42
43
43
44
source :
44
45
FROM +install
45
- COPY --keep-ts Cargo.toml Cargo.lock ./
46
+ COPY --keep-ts Cargo.toml Cargo.lock Cross.toml ./
46
47
COPY --keep-ts --dir server lib cli ./
47
48
COPY browser+build/dist /code/server/assets_tmp
48
49
DO rust+CARGO --args = fetch
67
68
68
69
cross-build :
69
70
FROM +source
71
+ # The TARGETs may need custom libraries defined in `atomic-server/Cross.toml`
70
72
ARG --required TARGET
71
73
DO rust+SET_CACHE_MOUNTS_ENV
72
74
DO rust+CROSS --target ${TARGET }
You can’t perform that action at this time.
0 commit comments