-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: change tag name for static build #49
feat: change tag name for static build #49
Conversation
- change tag name: muslc -> static - unify link_muslc.go and link_static.go -> link_static.go - update build files: Dockerfile, Makefile
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Added linux static test. PTAL |
# build a go binary | ||
docker run --rm -u $(USER_ID):$(USER_GROUP) -v $(shell pwd):/code -w /code $(BUILDERS_PREFIX):static go build -tags='static mocks' -o static.exe ./cmd | ||
# run static binary in an alpine machines (not dlls) | ||
docker run --rm --read-only -v $(shell pwd):/code -w /code centos ./static.exe ./api/testdata/hackatom.wasm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about choice a more specific the centos version?
used 7 when building, so I think it would be good to specify 7 in the test as well.
test-static: release-build-linux-static | ||
# build a go binary | ||
docker run --rm -u $(USER_ID):$(USER_GROUP) -v $(shell pwd):/code -w /code $(BUILDERS_PREFIX):static go build -tags='static mocks' -o static.exe ./cmd | ||
# run static binary in an alpine machines (not dlls) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it right that 'dlls' to windows dlls? It seems unfamiliar Windows terminology in the linux environment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I will fix the comment in another PR.
Description
change tag name for static build
Types of changes
Checklist