From f504e04735871d901bc4e5dae2466e4d8423b7bd Mon Sep 17 00:00:00 2001 From: Kagami Date: Wed, 17 Feb 2021 16:34:42 +0800 Subject: [PATCH] ci: add release pipeline --- .azure/azure-pipelines.release.yml | 46 ++++++++++++++++++++++++++++++ .azure/shared-steps.yml | 10 +------ 2 files changed, 47 insertions(+), 9 deletions(-) create mode 100644 .azure/azure-pipelines.release.yml diff --git a/.azure/azure-pipelines.release.yml b/.azure/azure-pipelines.release.yml new file mode 100644 index 000000000..e0010cd34 --- /dev/null +++ b/.azure/azure-pipelines.release.yml @@ -0,0 +1,46 @@ +variables: + npm_config_cache: $(Pipeline.Workspace)/.npm + THIS_MONTH: $[format('{0:yyyyMM}', pipeline.startTime)] + +trigger: + tags: + include: + - '*' + branches: + exclude: + - '*' + +jobs: +- job: Linux + strategy: + matrix: + full: + buildType: full + pool: + vmImage: 'ubuntu-latest' + steps: + - script: | + sudo apt-get update + sudo apt-get install --no-install-recommends -y libopenjp2-tools rpm libarchive-tools snapcraft + displayName: 'Linux system dependencies' + - template: shared-steps.yml + +- job: macOS + strategy: + matrix: + full: + buildType: full + pool: + vmImage: 'macOS-latest' + steps: + - template: shared-steps.yml + +- job: Windows + strategy: + matrix: + full: + buildType: full + pool: + vmImage: 'windows-latest' + steps: + - template: shared-steps.yml diff --git a/.azure/shared-steps.yml b/.azure/shared-steps.yml index b20cc85c8..f41e25dca 100644 --- a/.azure/shared-steps.yml +++ b/.azure/shared-steps.yml @@ -16,17 +16,9 @@ steps: npm ci displayName: 'npm install' -- script: | - npm run lint - displayName: 'npm lint' - - script: | npm run build:$(buildType) - displayName: 'npm build' - -- script: | - npm test - displayName: 'npm test' + displayName: npm build $(buildType) - task: CopyFiles@2 inputs: