Remove i386 cross-compile binary (#20)

This commit is contained in:
Adrian Macneil 2018-01-07 13:15:57 -08:00 committed by GitHub
parent 6d5a22fce8
commit f150d6aeff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 7 deletions

View file

@ -3,12 +3,6 @@ FROM golang:1.9
# required to force cgo (for sqlite driver) with cross compile
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
RUN go get \
github.com/golang/lint/golint \

View file

@ -21,7 +21,6 @@ test:
$(DC) run dbmate go test -v $(PACKAGES)
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
# 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