aboutsummaryrefslogtreecommitdiffstats
path: root/.drone.yml
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2020-04-05 20:28:18 +0800
committerGitHub <noreply@github.com>2020-04-05 20:28:18 +0800
commit686850e21f7561b002a4ffce3b9d221665c06377 (patch)
treefe25decc7a3f620feb971025ed14adeae4bf52be /.drone.yml
parentbaadb51445b1d990f72a37b0ef7575f5ed72824a (diff)
downloadgitea-686850e21f7561b002a4ffce3b9d221665c06377.tar.gz
gitea-686850e21f7561b002a4ffce3b9d221665c06377.zip
Fix cross compile (#10952)
* Fix cross compile * Add test for cross compile * Fix drone * Fix drone * Also prevent CC environment not to generate Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to '.drone.yml')
-rw-r--r--.drone.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/.drone.yml b/.drone.yml
index ee23f1ad08..be2d5f85a6 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -51,6 +51,21 @@ steps:
- go build -mod=vendor -o gitea_no_gcc # test if build succeeds without the sqlite tag
depends_on: [lint-backend]
+ - name: build-backend-arm64
+ pull: always
+ image: golang:1.14
+ environment:
+ GO111MODULE: on
+ GOPROXY: off
+ GOOS: linux
+ GOARCH: arm64
+ TAGS: bindata
+ commands:
+ - curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt -y install nodejs
+ - make build # test cross compile
+ - rm ./gitea # clean
+ depends_on: [lint-backend]
+
- name: build-backend-386
pull: always
image: golang:1.14