-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: change tag name for static build (#49)
- change tag name: muslc -> static - unify link_muslc.go and link_static.go -> link_static.go - update build files: Dockerfile, Makefile
- Loading branch information
Yongwoo Lee
authored
Oct 1, 2021
1 parent
020be52
commit 4fd4a37
Showing
9 changed files
with
58 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,6 @@ lib*.a | |
# artifacts from compile tests | ||
artifacts/ | ||
muslc.exe | ||
static.exe | ||
tmp | ||
a.out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,28 @@ | ||
# Versioned by a simple counter that is not bound to a specific CosmWasm version | ||
# See builders/README.md | ||
BUILDERS_PREFIX := cosmwasm/go-ext-builder:0006 | ||
BUILDERS_PREFIX := line/wasmvm-builder | ||
|
||
.PHONY: docker-image-centos7 | ||
docker-image-centos7: | ||
docker build . -t $(BUILDERS_PREFIX)-centos7 -f ./Dockerfile.centos7 | ||
docker build . -t $(BUILDERS_PREFIX):centos7 -f ./Dockerfile.centos7 | ||
|
||
.PHONY: docker-image-cross | ||
docker-image-cross: | ||
docker build . -t $(BUILDERS_PREFIX)-cross -f ./Dockerfile.cross | ||
docker build . -t $(BUILDERS_PREFIX):cross -f ./Dockerfile.cross | ||
|
||
.PHONY: docker-image-alpine | ||
docker-image-alpine: | ||
docker build . -t $(BUILDERS_PREFIX)-alpine -f ./Dockerfile.alpine | ||
docker build . -t $(BUILDERS_PREFIX):alpine -f ./Dockerfile.alpine | ||
|
||
.PHONY: docker-image-static | ||
docker-image-static: | ||
docker build . -t $(BUILDERS_PREFIX):static -f ./Dockerfile.static | ||
|
||
.PHONY: docker-images | ||
docker-images: docker-image-centos7 docker-image-cross docker-image-alpine | ||
docker-images: docker-image-centos7 docker-image-cross docker-image-alpine docker-image-static | ||
|
||
.PHONY: docker-publish | ||
docker-publish: docker-images | ||
docker push $(BUILDERS_PREFIX)-cross | ||
docker push $(BUILDERS_PREFIX)-centos7 | ||
docker push $(BUILDERS_PREFIX)-alpine | ||
# TODO publish images to registry | ||
# .PHONY: docker-publish | ||
# docker-publish: docker-images | ||
# docker push $(BUILDERS_PREFIX):cross | ||
# docker push $(BUILDERS_PREFIX):centos7 | ||
# docker push $(BUILDERS_PREFIX):alpine | ||
# docker push $(BUILDERS_PREFIX):static |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
#!/bin/sh | ||
|
||
TARGET_NAME="${1:-static}" | ||
|
||
cargo build --release --example staticlib | ||
cp /code/target/release/examples/libstaticlib.a "/code/api/libwasmvm_$TARGET_NAME.a" | ||
cp /code/target/release/examples/libstaticlib.a "/code/api/libwasmvm_static.a" |