Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

build: build macOS beta releases with native compiler on travis #2309

Nick Craig-Wood6b424213747e
diff --git a/.travis.yml b/.travis.yml
index 595389472..09186e120 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -47,4 +47,4 @@ deploy:
on:
all_branches: true
go: "1.10.1"
- condition: $TRAVIS_OS_NAME == linux && $TRAVIS_PULL_REQUEST == false
+ condition: $TRAVIS_PULL_REQUEST == false
diff --git a/Makefile b/Makefile
index be882c94b..3dd4e66a0 100644
--- a/Makefile
+++ b/Makefile
@@ -177,10 +177,17 @@ ifndef BRANCH_PATH
endif
@echo Beta release ready at $(BETA_URL)
+BUILD_FLAGS := -exclude "^(windows|darwin)/"
+ifeq ($(TRAVIS_OS_NAME),osx)
+ BUILD_FLAGS := -include "^darwin/" -cgo
+endif
+
travis_beta:
+ifeq ($(TRAVIS_OS_NAME),linux)
go run bin/get-github-release.go -extract nfpm goreleaser/nfpm 'nfpm_.*_Linux_x86_64.tar.gz'
+endif
git log $(LAST_TAG).. > /tmp/git-log.txt
- go run bin/cross-compile.go -release beta-latest -git-log /tmp/git-log.txt -exclude "^windows/" -parallel 8 $(BUILDTAGS) $(TAG)β
+ go run bin/cross-compile.go -release beta-latest -git-log /tmp/git-log.txt $(BUILD_FLAGS) -parallel 8 $(BUILDTAGS) $(TAG)β
rclone --config bin/travis.rclone.conf -v copy --exclude '*beta-latest*' build/ $(BETA_UPLOAD)
ifndef BRANCH_PATH
rclone --config bin/travis.rclone.conf -v copy --include '*beta-latest*' --include version.txt build/ $(BETA_UPLOAD_ROOT)