ci: build .deb files along with .tar.gz files for Debian

This commit is contained in:
Ayke van Laethem
2020-05-12 23:59:21 +01:00
committed by Ron Evans
parent aa40ddc48b
commit b5f028e1f7
3 changed files with 20 additions and 3 deletions
+9 -1
View File
@@ -204,13 +204,21 @@ commands:
- run:
name: "Test TinyGo"
command: make test
- run:
name: "Install fpm"
command: |
sudo apt-get install ruby ruby-dev
sudo gem install --no-document fpm
- run:
name: "Build TinyGo release"
command: |
make release -j3
make release deb -j3
cp -p build/release.tar.gz /tmp/tinygo.linux-amd64.tar.gz
cp -p build/release.deb /tmp/tinygo_amd64.deb
- store_artifacts:
path: /tmp/tinygo.linux-amd64.tar.gz
- store_artifacts:
path: /tmp/tinygo_amd64.deb
- save_cache:
key: go-cache-v2-{{ checksum "go.mod" }}-{{ .Environment.CIRCLE_BUILD_NUM }}
paths: