-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathMakefile
More file actions
56 lines (44 loc) · 1.7 KB
/
Makefile
File metadata and controls
56 lines (44 loc) · 1.7 KB
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
46
47
48
49
50
51
52
53
54
55
TAG := bdk-reserves
TAG_63 := bdk-reserves-63
http_proxy ?= http://172.17.0.1:3128
DOCKER_RUN := docker run --interactive --rm \
-v ${PWD}:/home/satoshi \
build: builder
$(DOCKER_RUN) --tty ${TAG} cargo build
test: test_current test_63
test_current: builder
rm -f Cargo.lock
$(DOCKER_RUN) ${TAG} cargo test
test_63: builder_63
rm -f Cargo.lock
$(DOCKER_RUN) ${TAG_63} cargo test || true
$(DOCKER_RUN) ${TAG_63} cargo update -p home --precise 0.5.5 || true
$(DOCKER_RUN) ${TAG_63} cargo update -p tokio --precise 1.38.1 || true
$(DOCKER_RUN) ${TAG_63} cargo update -p ring:0.17.14 --precise 0.17.8 || true
$(DOCKER_RUN) ${TAG_63} cargo update -p cc --precise 1.0.105 || true
$(DOCKER_RUN) ${TAG_63} cargo update -p flate2 --precise 1.0.35 || true
$(DOCKER_RUN) ${TAG_63} cargo update -p once_cell --precise 1.20.3 || true
$(DOCKER_RUN) ${TAG_63} cargo update -p bzip2-sys --precise 0.1.11+1.0.8 || true
$(DOCKER_RUN) ${TAG_63} cargo update -p minreq --precise 2.12.0 || true
$(DOCKER_RUN) ${TAG_63} cargo test
run: builder
$(DOCKER_RUN) --tty ${TAG} cargo run
wasm-unknown: builder
$(DOCKER_RUN) --tty ${TAG} cargo check --target wasm32-unknown-unknown --no-default-features
wasm-wasi: builder
$(DOCKER_RUN) --tty ${TAG} cargo check --target wasm32-wasi --no-default-features
wasm-emscripten: builder
$(DOCKER_RUN) --tty ${TAG} cargo check --target wasm32-unknown-emscripten --no-default-features
sh: builder
$(DOCKER_RUN) --tty ${TAG} sh
builder:
docker build --tag ${TAG} \
--build-arg http_proxy="${http_proxy}" \
--build-arg UID="$(shell id -u)" \
.
builder_63:
docker build --tag ${TAG_63}\
--build-arg http_proxy="${http_proxy}" \
--build-arg UID="$(shell id -u)" \
-f Dockerfile_63 \
.