8000 build: build macOS beta releases with native compiler on travis #2309 · devdevmac/rclone@6b42421 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6b42421

Browse files
committed
build: build macOS beta releases with native compiler on travis rclone#2309
1 parent fa051ff commit 6b42421

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ deploy:
4747
on:
4848
all_branches: true
4949
go: "1.10.1"
50-
condition: $TRAVIS_OS_NAME == linux && $TRAVIS_PULL_REQUEST == false
50+
condition: $TRAVIS_PULL_REQUEST == false

Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,17 @@ ifndef BRANCH_PATH
177177
endif
178178
@echo Beta release ready at $(BETA_URL)
179179

180+
BUILD_FLAGS := -exclude "^(windows|darwin)/"
181+
ifeq ($(TRAVIS_OS_NAME),osx)
182+
BUILD_FLAGS := -include "^darwin/" -cgo
183+
endif
184+
180185
travis_beta:
186+
ifeq ($(TRAVIS_OS_NAME),linux)
181187
go run bin/get-github-release.go -extract nfpm goreleaser/nfpm 'nfpm_.*_Linux_x86_64.tar.gz'
188+
endif
182189
git log $(LAST_TAG).. > /tmp/git-log.txt
183-
go run bin/cross-compile.go -release beta-latest -git-log /tmp/git-log.txt -exclude "^windows/" -parallel 8 $(BUILDTAGS) $(TAG)β
190+
go run bin/cross-compile.go -release beta-latest -git-log /tmp/git-log.txt $(BUILD_FLAGS) -parallel 8 $(BUILDTAGS) $(TAG)β
184191
rclone --config bin/travis.rclone.conf -v copy --exclude '*beta-latest*' build/ $(BETA_UPLOAD)
185192
ifndef BRANCH_PATH
186193
rclone --config bin/travis.rclone.conf -v copy --include '*beta-latest*' --include version.txt build/ $(BETA_UPLOAD_ROOT)

0 commit comments

Comments
 (0)
0