Skip to content

Commit

Permalink
Update azure-pipelines.yml for Azure Pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeuw committed Apr 17, 2021
1 parent d72aa41 commit 3facaa1
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@ pool:
vmImage: 'ubuntu-latest'

variables:
GOVERSION: '1.15.2'
NDKVERSION: 'r21e'
GOBIN: '$(GOPATH)/bin' # Go binaries path
GOROOT: '$(Agent.BuildDirectory)/go' # Go installation path
GOPATH: '$(Agent.BuildDirectory)/gopath' # Go workspace path
ANDROID_NDK_HOME: '$(Agent.BuildDirectory)/android-ndk-$(NDKVERSION)' # NDK path

steps:
- script: |
Expand All @@ -28,10 +31,15 @@ steps:
shopt -s dotglob
echo '##vso[task.prependpath]$(GOBIN)'
echo '##vso[task.prependpath]$(GOROOT)/bin'
wget "https://golang.org/dl/go1.15.2.linux-amd64.tar.gz" --output-document "$(Agent.BuildDirectory)/go1.15.2.tar.gz"
tar -C '$(Agent.BuildDirectory)' -xzf "$(Agent.BuildDirectory)/go1.15.2.tar.gz"
wget "https://golang.org/dl/go$(GOVERSION).linux-amd64.tar.gz" --output-document "$(Agent.BuildDirectory)/go$(GOVERSION).tar.gz"
tar -C '$(Agent.BuildDirectory)' -xzf "$(Agent.BuildDirectory)/go$(GOVERSION).tar.gz"
displayName: 'Set up the Go workspace'

- script: |
wget "https://dl.google.com/android/repository/android-ndk-$(NDKVERSION)-linux-x86_64.zip" --output-document "$(Agent.BuildDirectory)/ndk-$(NDKVERSION).zip"
unzip "$(Agent.BuildDirectory)/ndk-$(NDKVERSION).zip" -d '$(Agent.BuildDirectory)'
displayName: 'Download NDK'

- script: |
chmod +x ./gradlew
pushd '$(Build.SourcesDirectory)/app/src'
Expand Down

0 comments on commit 3facaa1

Please sign in to comment.