2019-11-07 03:04:42 -05:00
|
|
|
language: go
|
|
|
|
go:
|
2022-03-02 06:29:18 -05:00
|
|
|
- 1.17.x
|
2020-06-01 07:27:06 -05:00
|
|
|
node_js: "12.16.3"
|
2019-11-07 03:04:42 -05:00
|
|
|
git:
|
|
|
|
depth: 1
|
2022-04-12 04:20:02 -05:00
|
|
|
before_install:
|
2022-04-09 07:58:07 -05:00
|
|
|
- mkdir assets/build
|
|
|
|
- touch assets/build/test.html
|
2020-03-11 05:25:31 -05:00
|
|
|
script:
|
2020-03-11 19:46:14 -05:00
|
|
|
- go test -coverprofile=coverage.txt -covermode=atomic ./...
|
|
|
|
after_success:
|
|
|
|
- bash <(curl -s https://codecov.io/bash)
|
|
|
|
before_deploy:
|
2020-03-11 21:25:21 -05:00
|
|
|
- sudo apt-get update
|
2020-03-11 19:46:14 -05:00
|
|
|
- sudo apt-get -y install gcc-mingw-w64-x86-64
|
|
|
|
- sudo apt-get -y install gcc-arm-linux-gnueabihf libc6-dev-armhf-cross
|
2020-04-11 23:00:01 -05:00
|
|
|
- sudo apt-get -y install gcc-aarch64-linux-gnu libc6-dev-arm64-cross
|
2020-03-11 19:46:14 -05:00
|
|
|
- chmod +x ./build.sh
|
2020-03-11 05:25:31 -05:00
|
|
|
- ./build.sh -r b
|
2020-03-11 05:22:35 -05:00
|
|
|
deploy:
|
|
|
|
provider: releases
|
|
|
|
api_key: $GITHUB_TOKEN
|
|
|
|
file_glob: true
|
|
|
|
file: release/*
|
2020-03-11 05:22:48 -05:00
|
|
|
draft: true
|
2020-03-11 06:02:38 -05:00
|
|
|
skip_cleanup: true
|
2020-03-11 19:46:14 -05:00
|
|
|
on:
|
2022-04-09 07:58:07 -05:00
|
|
|
tags: true
|