Use gox to cross-compile (#274)
use gox for cross-compile use xgo base image correct flags for gox no need to test drone anymore Co-authored-by: Matti R <matti@mdranta.net> Co-authored-by: 6543 <6543@obermui.de> Reviewed-on: https://gitea.com/gitea/tea/pulls/274 Reviewed-by: 6543 <6543@obermui.de> Reviewed-by: Norwin <noerw@noreply.gitea.io> Co-Authored-By: techknowlogick <techknowlogick@gitea.io> Co-Committed-By: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
@@ -6,10 +6,6 @@ platform:
|
||||
os: linux
|
||||
arch: amd64
|
||||
|
||||
workspace:
|
||||
base: /go
|
||||
path: src/code.gitea.io/tea
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
pull: always
|
||||
@@ -31,7 +27,6 @@ steps:
|
||||
- pull_request
|
||||
|
||||
- name: unit-test
|
||||
pull: always
|
||||
image: golang:1.15
|
||||
commands:
|
||||
- make unit-test-coverage
|
||||
@@ -45,7 +40,6 @@ steps:
|
||||
- pull_request
|
||||
|
||||
- name: release-test
|
||||
pull: always
|
||||
image: golang:1.15
|
||||
commands:
|
||||
- make test
|
||||
@@ -70,8 +64,7 @@ steps:
|
||||
- tag
|
||||
|
||||
- name: static
|
||||
pull: always
|
||||
image: techknowlogick/xgo:latest
|
||||
image: golang:1.15
|
||||
environment:
|
||||
GOPROXY: https://goproxy.cn
|
||||
commands:
|
||||
|
||||
Reference in New Issue
Block a user