11.PHONY : all build build-rust build-go test
22
33# Builds the Rust library libwasmvm
4- BUILDERS_PREFIX := cosmwasm/go-ext- builder:0019
4+ BUILDERS_PREFIX := cosmwasm/libwasmvm- builder:0100
55# Contains a full Go dev environment including CGO support in order to run Go tests on the built shared library
66# This image is currently not published.
77ALPINE_TESTER := cosmwasm/alpine-tester:local
6868
6969# Creates a release build in a containerized build environment of the static library for Alpine Linux (.a)
7070release-build-alpine :
71- # Builders should not write their target folder into the host file system (https://github.com/CosmWasm/wasmvm/issues/437)
72- rm -rf libwasmvm/target/aarch64-unknown-linux-musl/release
73- rm -rf libwasmvm/target/x86_64-unknown-linux-musl/release
7471 # build the muslc *.a file
7572 docker run --rm -u $(USER_ID ) :$(USER_GROUP ) -v $(shell pwd) /libwasmvm:/code $(BUILDERS_PREFIX ) -alpine
7673 cp libwasmvm/artifacts/libwasmvm_muslc.x86_64.a internal/api
@@ -79,38 +76,28 @@ release-build-alpine:
7976
8077# Creates a release build in a containerized build environment of the shared library for glibc Linux (.so)
8178release-build-linux :
82- # Builders should not write their target folder into the host file system (https://github.com/CosmWasm/wasmvm/issues/437)
83- rm -rf libwasmvm/target/x86_64-unknown-linux-gnu/release
84- rm -rf libwasmvm/target/aarch64-unknown-linux-gnu/release
85- docker run --rm -u $(USER_ID ) :$(USER_GROUP ) -v $(shell pwd) /libwasmvm:/code $(BUILDERS_PREFIX ) -centos7 build_linux.sh
79+ docker run --rm -u $(USER_ID ) :$(USER_GROUP ) -v $(shell pwd) /libwasmvm:/code $(BUILDERS_PREFIX ) -debian build_gnu_x86_64.sh
80+ docker run --rm -u $(USER_ID ) :$(USER_GROUP ) -v $(shell pwd) /libwasmvm:/code $(BUILDERS_PREFIX ) -debian build_gnu_aarch64.sh
8681 cp libwasmvm/artifacts/libwasmvm.x86_64.so internal/api
8782 cp libwasmvm/artifacts/libwasmvm.aarch64.so internal/api
8883 make update-bindings
8984
9085# Creates a release build in a containerized build environment of the shared library for macOS (.dylib)
9186release-build-macos :
92- # Builders should not write their target folder into the host file system (https://github.com/CosmWasm/wasmvm/issues/437)
93- rm -rf libwasmvm/target/x86_64-apple-darwin/release
94- rm -rf libwasmvm/target/aarch64-apple-darwin/release
9587 docker run --rm -u $(USER_ID ) :$(USER_GROUP ) -v $(shell pwd) /libwasmvm:/code $(BUILDERS_PREFIX ) -cross build_macos.sh
9688 cp libwasmvm/artifacts/libwasmvm.dylib internal/api
9789 make update-bindings
9890
9991# Creates a release build in a containerized build environment of the static library for macOS (.a)
10092release-build-macos-static :
101- # Builders should not write their target folder into the host file system (https://github.com/CosmWasm/wasmvm/issues/437)
102- rm -rf libwasmvm/target/x86_64-apple-darwin/release
103- rm -rf libwasmvm/target/aarch64-apple-darwin/release
10493 docker run --rm -u $(USER_ID ) :$(USER_GROUP ) -v $(shell pwd) /libwasmvm:/code $(BUILDERS_PREFIX ) -cross build_macos_static.sh
10594 cp libwasmvm/artifacts/libwasmvmstatic_darwin.a internal/api/libwasmvmstatic_darwin.a
10695 make update-bindings
10796
10897# Creates a release build in a containerized build environment of the shared library for Windows (.dll)
10998release-build-windows :
110- # Builders should not write their target folder into the host file system (https://github.com/CosmWasm/wasmvm/issues/437)
111- rm -rf libwasmvm/target/x86_64-pc-windows-gnu/release
11299 docker run --rm -u $(USER_ID ) :$(USER_GROUP ) -v $(shell pwd) /libwasmvm:/code $(BUILDERS_PREFIX ) -cross build_windows.sh
113- cp libwasmvm/target/x86_64-pc-windows-gnu/release /wasmvm.dll internal/api
100+ cp libwasmvm/artifacts /wasmvm.dll internal/api
114101 make update-bindings
115102
116103update-bindings :
0 commit comments