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