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 Mar 22, 2023
1 parent 04fa504 commit 662a63b
Showing 1 changed file with 5 additions and 18 deletions.
23 changes: 5 additions & 18 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,35 +15,22 @@ 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"
unzip "$(Agent.BuildDirectory)/ndk-$(NDKVERSION).zip" -d '$(Agent.BuildDirectory)'
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'
Expand Down

0 comments on commit 662a63b

Please sign in to comment.