mirror of
https://github.com/DJSundog/wg-portal.git
synced 2024-11-23 07:03:50 -05:00
44 lines
1.8 KiB
YAML
44 lines
1.8 KiB
YAML
language: go
|
|
dist: bionic
|
|
sudo: required
|
|
go:
|
|
- 1.16.x # Latest go version
|
|
env:
|
|
- GO111MODULE=on
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- gcc-multilib
|
|
|
|
before_install:
|
|
- # skip
|
|
|
|
install:
|
|
- # skip
|
|
|
|
script:
|
|
- go get -t -v ./...
|
|
- diff -u <(echo -n) <(gofmt -d .)
|
|
- go vet $(go list ./... | grep -v /vendor/)
|
|
- make build
|
|
# Switch over GCC to cross compilation (breaks 386, hence why do it here only)
|
|
- sudo -E apt-get -yq --no-install-suggests --no-install-recommends --force-yes install gcc-arm-linux-gnueabi libc6-dev-armel-cross gcc-arm-linux-gnueabihf libc6-dev-armhf-cross gcc-aarch64-linux-gnu libc6-dev-arm64-cross
|
|
- sudo ln -s /usr/include/asm-generic /usr/include/asm
|
|
- make build-cross-plat
|
|
|
|
deploy:
|
|
provider: releases
|
|
skip_cleanup: true # Important, otherwise the build output would be purged.
|
|
api_key:
|
|
# *encrypted* GitHub key, as the output of the Travis CI CLI tool
|
|
secure: "uZ7Vg7mEP7aUyaf/Uq5UZt6r3Ig/iOWcf7DZMhAWilOayeqdfW8kp2VzKFgTM6PJJm5Zv+OYV4dniO11QDjIX5sJfS10ApaxvPjw/a4NkqKykfrKZABWRmuvSv/PSjzl7jnWgnPqydBmHCfowsxI6X9j1uivgXZDMYg9BKOnDJtVoakUWJ47GKWr7ZegvF5DwB3EaPwDUmJIAJRiMqO+I2QmuVmLvvzkuhSQ/yuCjel/O7kudJuioJOvsxSHH5Mjh7HZoYayAFikVIGCXJStzMCeLwa+lUHUXoofoDT8SHMmcw2Oil1OpeC1PhvtT6VFLzYl9aphl472F9zP0TlBzR5VJ3+r5dwFVhf0MHp0LflIIg8RGjZg/H60yUUPbGYW7gN3wjdH1l7i66HcqFVs39GgzPCpxNuz8bhhUJOtR6K9FujYpp8AkFCwB327LwGzBLWP3wLGkmhj3ca3FBGJLZhzRdK6gpdp9KgY+33wJ/5R7zsUGtEGTjzsGB1GmBBb887qt0mh/cfm/mdh5HPWvZCif2WTyWd2W8gUiN4oTPhRdE/FRFUqoR1WEZeQrjgj3tThywrXIpRVdigN74UMsnlThSHxPZdJHPLftei2A3b+yfYgxt43sp22MqyuB6K7mT5ximQLWldN2Ibf7kKb5RO9/WX5P8LUj1KXtY3dh2o="
|
|
file:
|
|
- dist/wg-portal-amd64
|
|
- dist/wg-portal-arm64
|
|
- dist/wg-portal-arm
|
|
- dist/wg-portal.env
|
|
- dist/wg-portal.service
|
|
on:
|
|
repo: h44z/wg-portal
|
|
tags: true # The deployment happens only if the commit has a tag.
|