Skip to content

Commit 5dd2506

Browse files
author
Sergio Andres Virviescas Santana
committed
Not build in GOOS/GOARCH pair darwin/386 when Go > 1.14
1 parent 257e7c4 commit 5dd2506

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.travis.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,15 @@ script:
3131
- GOOS=darwin go build
3232
- GOOS=freebsd go build
3333
- GOOS=windows go build
34-
- GOARCH=386 go build
34+
- |
35+
if [[ $(uname) == Darwin ]]; then
36+
# Last supported version for GOOS=386 is go1.14 in Darwin
37+
if [[ $(go version | awk '{print $3}') =~ ^go1\.(9|10|11|12|13|14)$ ]]; then
38+
GOARCH=386 go build
39+
fi
40+
else
41+
GOARCH=386 go build
42+
fi
3543
3644
# run tests
3745
- |

0 commit comments

Comments
 (0)