File tree Expand file tree Collapse file tree 3 files changed +20
-3
lines changed Expand file tree Collapse file tree 3 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -204,13 +204,21 @@ commands:
204204 - run :
205205 name : " Test TinyGo"
206206 command : make test
207+ - run :
208+ name : " Install fpm"
209+ command : |
210+ sudo apt-get install ruby ruby-dev
211+ sudo gem install --no-document fpm
207212 - run :
208213 name : " Build TinyGo release"
209214 command : |
210- make release -j3
215+ make release deb -j3
211216 cp -p build/release.tar.gz /tmp/tinygo.linux-amd64.tar.gz
217+ cp -p build/release.deb /tmp/tinygo_amd64.deb
212218 - store_artifacts :
213219 path : /tmp/tinygo.linux-amd64.tar.gz
220+ - store_artifacts :
221+ path : /tmp/tinygo_amd64.deb
214222 - save_cache :
215223 key : go-cache-v2-{{ checksum "go.mod" }}-{{ .Environment.CIRCLE_BUILD_NUM }}
216224 paths :
Original file line number Diff line number Diff line change @@ -310,7 +310,7 @@ endif
310310 $(TINYGO) build -o wasm.wasm -target=wasm examples/wasm/export
311311 $(TINYGO) build -o wasm.wasm -target=wasm examples/wasm/main
312312
313- release : tinygo gen-device wasi-libc
313+ build/ release : tinygo gen-device wasi-libc
314314 @mkdir -p build/release/tinygo/bin
315315 @mkdir -p build/release/tinygo/lib/clang/include
316316 @mkdir -p build/release/tinygo/lib/CMSIS/CMSIS
@@ -345,4 +345,13 @@ release: tinygo gen-device wasi-libc
345345 ./build/tinygo build-library -target=armv6m-none-eabi -o build/release/tinygo/pkg/armv6m-none-eabi/picolibc.a picolibc
346346 ./build/tinygo build-library -target=armv7m-none-eabi -o build/release/tinygo/pkg/armv7m-none-eabi/picolibc.a picolibc
347347 ./build/tinygo build-library -target=armv7em-none-eabi -o build/release/tinygo/pkg/armv7em-none-eabi/picolibc.a picolibc
348+
349+ release : build/release
348350 tar -czf build/release.tar.gz -C build/release tinygo
351+
352+ deb : build/release
353+ @mkdir -p build/release-deb/usr/local/bin
354+ @mkdir -p build/release-deb/usr/local/lib
355+ cp -ar build/release/tinygo build/release-deb/usr/local/lib/tinygo
356+ ln -sf ../lib/tinygo/bin/tinygo build/release-deb/usr/local/bin/tinygo
357+ fpm -f -s dir -t deb -n tinygo -v $(shell grep "version = " version.go | awk '{print $$NF}') -m ' @tinygo-org' --description=' TinyGo is a Go compiler for small places.' --license=' BSD 3-Clause' --url=https://tinygo.org/ --deb-changelog CHANGELOG.md -p build/release.deb -C ./build/release-deb
Original file line number Diff line number Diff line change 6969 script : |
7070 export PATH="$PATH:./llvm-build/bin:/c/Program Files/qemu"
7171 unset GOROOT
72- make release -j4
72+ make build/ release -j4
7373 - publish : $(System.DefaultWorkingDirectory)/build/release/tinygo
7474 displayName : Publish zip as artifact
7575 artifact : tinygo
You can’t perform that action at this time.
0 commit comments