44 lines
1.4 KiB
YAML
44 lines
1.4 KiB
YAML
parameters:
|
|
cache: 'false'
|
|
version: ''
|
|
|
|
steps:
|
|
- task: DockerInstaller@0
|
|
displayName: 'Prepare Environment'
|
|
inputs:
|
|
dockerVersion: '17.09.0-ce'
|
|
- task: CacheBeta@0
|
|
displayName: 'Cache Build System'
|
|
inputs:
|
|
key: yuzu-v1-$(BuildName)-$(BuildSuffix)-$(CacheSuffix)
|
|
path: $(System.DefaultWorkingDirectory)/ccache
|
|
cacheHitVar: CACHE_RESTORED
|
|
- task: DownloadSecureFile@1
|
|
name: sshKey
|
|
inputs:
|
|
secureFile: 'ssh.key'
|
|
- task: DownloadSecureFile@1
|
|
name: gpgKey
|
|
inputs:
|
|
secureFile: 'gpg.key'
|
|
- script: chmod a+x ./.ci/scripts/$(ScriptFolder)/exec.sh && ./.ci/scripts/$(ScriptFolder)/exec.sh ${{ parameters['version'] }}
|
|
displayName: 'Build'
|
|
env:
|
|
FLATPAK_GPG_PUBLIC_KEY: $(FLATPAK_GPG_PUBLIC_KEY)
|
|
FLATPAK_SSH_HOSTNAME: $(FLATPAK_SSH_HOSTNAME)
|
|
FLATPAK_SSH_PORT: $(FLATPAK_SSH_PORT)
|
|
FLATPAK_SSH_PUBLIC_KEY: $(FLATPAK_SSH_PUBLIC_KEY)
|
|
FLATPAK_SSH_USER: $(FLATPAK_SSH_USER)
|
|
AZURE_BRANCH: $(Build.SourceBranch)
|
|
AZURE_BUILD_ID: $(Build.BuildId)
|
|
AZURE_BUILD_NUMBER: $(Build.BuildNumber)
|
|
AZURE_COMMIT: $(Build.SourceVersion)
|
|
AZURE_JOB_ID: $(System.JobId)
|
|
AZURE_REPO_SLUG: $(Build.Repository.Name)
|
|
AZURE_TAG: $(Build.SourceBranch)
|
|
SSH_KEY: $(sshKey.secureFilePath)
|
|
GPG_KEY: $(gpgKey.secureFilePath)
|
|
- script: chmod a+x ./.ci/scripts/$(ScriptFolder)/finish.sh && ./.ci/scripts/$(ScriptFolder)/finish.sh
|
|
condition: always()
|
|
displayName: 'Clean up'
|