diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b6c3771..d8e2576 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,9 +1,21 @@ image: "golang:1-alpine" -build: +before_script: + # Disabling cgo to not install gcc + - export CGO_ENABLED=0 + +build_linux_amd64: script: - - CGO_ENABLED=0 go build . + - GOOS=linux GOARCH=amd64 go build -o ./magnetico-go-migrator-$GOOS-$GOARCH . - ./magnetico-go-migrator --help artifacts: paths: - magnetico-go-migrator + +build_windows_amd64: + script: + - GOOS=windows GOARCH=amd64 go build -o ./magnetico-go-migrator-$GOOS-$GOARCH . + +build_darwin_amd64: + script: + - GOOS=darwin GOARCH=amd64 go build -o ./magnetico-go-migrator-$GOOS-$GOARCH .