mirror of
https://github.com/TECHNOFAB11/dbmate.git
synced 2025-12-11 23:50:04 +01:00
Add musl target for Alpine linux support (#8)
Building with `CGO_ENABLED=0` results in a binary which can run on Alpine linux (with musl libc), but it also disables SQLite support. Adding an additional target allows people to decide this tradeoff for themselves.
This commit is contained in:
parent
988471bba4
commit
93490b2f15
2 changed files with 8 additions and 0 deletions
2
Makefile
2
Makefile
|
|
@ -20,3 +20,5 @@ test:
|
|||
build: clean
|
||||
$(DC) run -e GOARCH=386 dbmate go build $(BUILD_FLAGS) -o dist/dbmate-linux-i386
|
||||
$(DC) run -e GOARCH=amd64 dbmate go build $(BUILD_FLAGS) -o dist/dbmate-linux-amd64
|
||||
# musl target does not support sqlite
|
||||
$(DC) run -e GOARCH=amd64 -e CGO_ENABLED=0 dbmate go build $(BUILD_FLAGS) -o dist/dbmate-linux-musl-amd64
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue