-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
45 lines (39 loc) · 1.25 KB
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
platforms := 'linux/arm64'
rust_version := 'stable'
default:
just -l
step0:
docker buildx build \
--platform={{ platforms }} \
-t ink:step0 \
-f docker/base/step0.Dockerfile \
.
step1: step0
docker buildx build \
--platform={{ platforms }} \
-t ink:step1-{{ rust_version }} \
-f docker/base/step1.Dockerfile \
--build-arg IMG_BASE=ink:step0 \
--build-arg RUST_VERSION={{ rust_version }} \
.
step2-clang: step1
docker buildx build \
--platform={{ platforms }} \
-t ink:step2-clang-{{ rust_version }} \
-f docker/base/step2-clang.Dockerfile \
--build-arg IMG_BASE=ink:step1-{{ rust_version }} \
.
target-gnu TARGET: step1
docker buildx build \
--platform={{ platforms }} \
-t ink:{{ rust_version }}-{{ TARGET }} \
-f docker/target/gnu/{{ TARGET }}.Dockerfile \
--build-arg IMG_BASE=ink:step1-{{ rust_version }} \
.
target-clang TARGET: step2-clang
docker buildx build \
--platform={{ platforms }} \
-t ink:{{ rust_version }}-{{ TARGET }} \
-f docker/target/clang/{{ TARGET }}.Dockerfile \
--build-arg IMG_BASE=ink:step2-clang-{{ rust_version }} \
.