From 662a63bfe1d398eda65af76f4175d1d18b237167 Mon Sep 17 00:00:00 2001 From: Andy Wang Date: Wed, 22 Mar 2023 22:23:00 +0000 Subject: [PATCH] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 7e3d876..1dd4aa6 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -15,25 +15,14 @@ pool: vmImage: 'ubuntu-latest' variables: - GOVERSION: '1.18' - NDKVERSION: 'r23b' - GOBIN: '$(GOPATH)/bin' # Go binaries path - GOROOT: '$(Agent.BuildDirectory)/go' # Go installation path - GOPATH: '$(Agent.BuildDirectory)/gopath' # Go workspace path + NDKVERSION: 'r25c' ANDROID_NDK_HOME: '$(Agent.BuildDirectory)/android-ndk-$(NDKVERSION)' # NDK path steps: -- script: | - mkdir -p '$(GOBIN)' - mkdir -p '$(GOPATH)/pkg' - mkdir -p '$(modulePath)' - shopt -s extglob - shopt -s dotglob - echo '##vso[task.prependpath]$(GOBIN)' - echo '##vso[task.prependpath]$(GOROOT)/bin' - 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' +- task: GoTool@0 + inputs: + version: '1.20' + displayName: 'Set up Go tools' - script: | wget "https://dl.google.com/android/repository/android-ndk-$(NDKVERSION)-linux.zip" --output-document "$(Agent.BuildDirectory)/ndk-$(NDKVERSION).zip" @@ -41,9 +30,7 @@ steps: displayName: 'Download NDK' - script: | - chmod +x ./gradlew pushd '$(Build.SourcesDirectory)/app/src' - chmod +x ./make.sh ./make.sh popd displayName: 'Cross compiling ck-client binaries'