Skip to content

Commit 86f48da

Browse files
aykevldeadprogram
authored andcommitted
ci: build with Go 1.13 on Windows
The default Go version is 1.12. Because Go 1.13 introduced language changes (improved numeric constants), TinyGo compiled with Go 1.12 cannot handle Go 1.13 code such as the Go 1.13 standard library. Use Go 1.13 to build TinyGo on Azure Pipelines to fix this.
1 parent 4be80e0 commit 86f48da

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ tinygo-test:
146146

147147
.PHONY: smoketest
148148
smoketest:
149+
$(TINYGO) version
149150
# test all examples
150151
$(TINYGO) build -size short -o test.hex -target=pca10040 examples/blinky1
151152
@$(MD5SUM) test.hex

azure-pipelines.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,16 @@ jobs:
5050
inputs:
5151
targetType: inline
5252
script: |
53-
export PATH="$PATH:./llvm-build/bin:/c/Program Files/qemu"
53+
export PATH="/c/Go1.13/bin:$PATH:./llvm-build/bin:/c/Program Files/qemu"
54+
unset GOROOT
5455
make test
5556
- task: Bash@3
5657
displayName: Build TinyGo release tarball
5758
inputs:
5859
targetType: inline
5960
script: |
60-
export PATH="$PATH:./llvm-build/bin:/c/Program Files/qemu"
61+
export PATH="/c/Go1.13/bin:$PATH:./llvm-build/bin:/c/Program Files/qemu"
62+
unset GOROOT
6163
make release -j4
6264
- publish: $(System.DefaultWorkingDirectory)/build/release.tar.gz
6365
displayName: Publish tarball as artifact
@@ -67,5 +69,6 @@ jobs:
6769
inputs:
6870
targetType: inline
6971
script: |
70-
export PATH="$PATH:./llvm-build/bin:/c/Program Files/qemu"
72+
export PATH="/c/Go1.13/bin:$PATH:./llvm-build/bin:/c/Program Files/qemu"
73+
unset GOROOT
7174
make smoketest TINYGO=build/tinygo AVR=0 RISCV=0

0 commit comments

Comments
 (0)