Skip to content
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

Merged

Conversation

whylee259
Copy link
Contributor

Description

change tag name for static build

  • change tag name: muslc -> static
  • unify link_muslc.go and link_static.go -> link_static.go
  • update build files: Dockerfile, Makefile

Types of changes

  • Bug fix (changes which fixes an issue)
  • New feature (changes which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • ETC (build, ci, docs, perf, refactor, style, test)

Checklist

- change tag name: muslc -> static
- unify link_muslc.go and link_static.go -> link_static.go
- update build files: Dockerfile, Makefile
@whylee259 whylee259 self-assigned this Oct 1, 2021
Copy link
Contributor

@brew0722 brew0722 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@whylee259
Copy link
Contributor Author

Added linux static test. PTAL

@whylee259 whylee259 merged commit 4fd4a37 into Finschia:main Oct 1, 2021
# 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
Copy link
Contributor

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)
Copy link
Contributor

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.

Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants