mirror of
https://github.com/TECHNOFAB11/dbmate.git
synced 2025-12-11 23:50:04 +01:00
Remove i386 cross-compile binary (#20)
This commit is contained in:
parent
6d5a22fce8
commit
f150d6aeff
2 changed files with 0 additions and 7 deletions
|
|
@ -3,12 +3,6 @@ FROM golang:1.9
|
||||||
# required to force cgo (for sqlite driver) with cross compile
|
# required to force cgo (for sqlite driver) with cross compile
|
||||||
ENV CGO_ENABLED 1
|
ENV CGO_ENABLED 1
|
||||||
|
|
||||||
# i386 cross compilation
|
|
||||||
RUN dpkg --add-architecture i386 && \
|
|
||||||
apt-get update && \
|
|
||||||
apt-get install -y libc6-dev-i386 && \
|
|
||||||
rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
# development dependencies
|
# development dependencies
|
||||||
RUN go get \
|
RUN go get \
|
||||||
github.com/golang/lint/golint \
|
github.com/golang/lint/golint \
|
||||||
|
|
|
||||||
1
Makefile
1
Makefile
|
|
@ -21,7 +21,6 @@ test:
|
||||||
$(DC) run dbmate go test -v $(PACKAGES)
|
$(DC) run dbmate go test -v $(PACKAGES)
|
||||||
|
|
||||||
build: clean
|
build: clean
|
||||||
$(DC) run -e GOARCH=386 dbmate go build $(BUILD_FLAGS) -o dist/dbmate-linux-i386 ./cmd/dbmate
|
|
||||||
$(DC) run -e GOARCH=amd64 dbmate go build $(BUILD_FLAGS) -o dist/dbmate-linux-amd64 ./cmd/dbmate
|
$(DC) run -e GOARCH=amd64 dbmate go build $(BUILD_FLAGS) -o dist/dbmate-linux-amd64 ./cmd/dbmate
|
||||||
# musl target does not support sqlite
|
# 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 ./cmd/dbmate
|
$(DC) run -e GOARCH=amd64 -e CGO_ENABLED=0 dbmate go build $(BUILD_FLAGS) -o dist/dbmate-linux-musl-amd64 ./cmd/dbmate
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue