WIP: Check #114
28
.drone.yml
28
.drone.yml
|
@ -11,9 +11,6 @@ steps:
|
||||||
path: /go
|
path: /go
|
||||||
commands:
|
commands:
|
||||||
- go install honnef.co/go/tools/cmd/staticcheck@latest
|
- go install honnef.co/go/tools/cmd/staticcheck@latest
|
||||||
- wget https://git.openprivacy.ca/openprivacy/buildfiles/raw/master/tor/tor
|
|
||||||
- wget https://git.openprivacy.ca/openprivacy/buildfiles/raw/master/tor/torrc
|
|
||||||
- chmod a+x tor
|
|
||||||
- git fetch --tags
|
- git fetch --tags
|
||||||
#- export GO111MODULE=on
|
#- export GO111MODULE=on
|
||||||
#- go mod vendor
|
#- go mod vendor
|
||||||
|
@ -33,6 +30,21 @@ steps:
|
||||||
- staticcheck ./...
|
- staticcheck ./...
|
||||||
#Todo: fix all the lint errors and add `-set_exit_status` above to enforce linting
|
#Todo: fix all the lint errors and add `-set_exit_status` above to enforce linting
|
||||||
|
|
||||||
|
- name: build-android
|
||||||
|
image: openpriv/android-go-mobile:2023.02
|
||||||
|
volumes:
|
||||||
|
- name: deps
|
||||||
|
path: /go
|
||||||
|
commands:
|
||||||
|
- git checkout tags/v1.10.4 -b v1.10.4
|
||||||
|
- git status
|
||||||
|
- go mod download
|
||||||
|
- gomobile init
|
||||||
|
- ./switch-gomobile.sh
|
||||||
|
- go env
|
||||||
|
- gomobile bind -target android/arm,android/arm64,android/amd64 -trimpath -ldflags="-buildid=$(git describe --tags) -X cwtch.buildVer=$(git describe --tags) -X cwtch.buildDate=$(git log -1 --format=%cd --date=format:%G-%m-%d-%H-%M)"
|
||||||
|
- sha512sum cwtch.aar
|
||||||
|
|
||||||
- name: build-linux
|
- name: build-linux
|
||||||
image: golang:1.19.1
|
image: golang:1.19.1
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -41,16 +53,6 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
- make linux
|
- make linux
|
||||||
|
|
||||||
- name: build-android
|
|
||||||
image: openpriv/android-go-mobile:2023.02
|
|
||||||
volumes:
|
|
||||||
- name: deps
|
|
||||||
path: /go
|
|
||||||
commands:
|
|
||||||
- go mod download
|
|
||||||
- gomobile init
|
|
||||||
- make android
|
|
||||||
|
|
||||||
- name: build-windows
|
- name: build-windows
|
||||||
image: openpriv/mingw-go:2023.01
|
image: openpriv/mingw-go:2023.01
|
||||||
environment:
|
environment:
|
||||||
|
|
Reference in New Issue