Fix macos version
This commit is contained in:
parent
f392f760bb
commit
eafebe6f73
|
@ -14,288 +14,288 @@
|
||||||
# compile-time `${{ if }}:` statements.
|
# compile-time `${{ if }}:` statements.
|
||||||
|
|
||||||
parameters:
|
parameters:
|
||||||
- name: pkgconfigBuilds
|
- name: pkgconfigBuilds
|
||||||
type: object
|
type: object
|
||||||
default:
|
default:
|
||||||
- name: linux_stable_semistatic
|
- name: linux_stable_semistatic
|
||||||
vmImage: ubuntu-22.04
|
vmImage: ubuntu-22.04
|
||||||
params:
|
params:
|
||||||
primaryBuild: true
|
primaryBuild: true
|
||||||
vars:
|
vars:
|
||||||
TARGET: x86_64-unknown-linux-gnu
|
TARGET: x86_64-unknown-linux-gnu
|
||||||
TOOLCHAIN: stable
|
TOOLCHAIN: stable
|
||||||
TECTONIC_PKGCONFIG_FORCE_SEMI_STATIC: true
|
TECTONIC_PKGCONFIG_FORCE_SEMI_STATIC: true
|
||||||
|
|
||||||
- name: linux_stable_extdeps
|
- name: linux_stable_extdeps
|
||||||
vmImage: ubuntu-22.04
|
vmImage: ubuntu-22.04
|
||||||
params:
|
params:
|
||||||
canaryBuild: true
|
canaryBuild: true
|
||||||
installAllDeps: true
|
installAllDeps: true
|
||||||
explicitFeatures: "external-harfbuzz"
|
explicitFeatures: "external-harfbuzz"
|
||||||
vars:
|
vars:
|
||||||
TARGET: x86_64-unknown-linux-gnu
|
TARGET: x86_64-unknown-linux-gnu
|
||||||
TOOLCHAIN: stable
|
TOOLCHAIN: stable
|
||||||
|
|
||||||
- name: linux_stable_intdeps
|
- name: linux_stable_intdeps
|
||||||
vmImage: ubuntu-22.04
|
vmImage: ubuntu-22.04
|
||||||
params:
|
params:
|
||||||
canaryBuild: true
|
canaryBuild: true
|
||||||
installAllDeps: false
|
installAllDeps: false
|
||||||
vars:
|
vars:
|
||||||
TARGET: x86_64-unknown-linux-gnu
|
TARGET: x86_64-unknown-linux-gnu
|
||||||
TOOLCHAIN: stable
|
TOOLCHAIN: stable
|
||||||
|
|
||||||
- name: linux_beta
|
- name: linux_beta
|
||||||
vmImage: ubuntu-22.04
|
vmImage: ubuntu-22.04
|
||||||
params:
|
params:
|
||||||
canaryBuild: true
|
canaryBuild: true
|
||||||
vars:
|
vars:
|
||||||
TARGET: x86_64-unknown-linux-gnu
|
TARGET: x86_64-unknown-linux-gnu
|
||||||
TOOLCHAIN: beta
|
TOOLCHAIN: beta
|
||||||
|
|
||||||
- name: linux_nightly
|
- name: linux_nightly
|
||||||
vmImage: ubuntu-22.04
|
vmImage: ubuntu-22.04
|
||||||
params:
|
params:
|
||||||
canaryBuild: true
|
canaryBuild: true
|
||||||
vars:
|
vars:
|
||||||
TARGET: x86_64-unknown-linux-gnu
|
TARGET: x86_64-unknown-linux-gnu
|
||||||
TOOLCHAIN: nightly
|
TOOLCHAIN: nightly
|
||||||
|
|
||||||
- name: macos_intdeps
|
- name: macos_intdeps
|
||||||
vmImage: macos-11
|
vmImage: macos-12
|
||||||
params:
|
params:
|
||||||
canaryBuild: true
|
canaryBuild: true
|
||||||
installAllDeps: false
|
installAllDeps: false
|
||||||
vars:
|
vars:
|
||||||
TARGET: x86_64-apple-darwin
|
TARGET: x86_64-apple-darwin
|
||||||
TOOLCHAIN: stable
|
TOOLCHAIN: stable
|
||||||
|
|
||||||
- name: macos_extdeps
|
- name: macos_extdeps
|
||||||
vmImage: macos-11
|
vmImage: macos-12
|
||||||
params:
|
params:
|
||||||
canaryBuild: true
|
canaryBuild: true
|
||||||
installAllDeps: true
|
installAllDeps: true
|
||||||
explicitFeatures: "external-harfbuzz"
|
explicitFeatures: "external-harfbuzz"
|
||||||
vars:
|
vars:
|
||||||
TARGET: x86_64-apple-darwin
|
TARGET: x86_64-apple-darwin
|
||||||
TOOLCHAIN: stable
|
TOOLCHAIN: stable
|
||||||
|
|
||||||
- name: windows_intdeps
|
- name: windows_intdeps
|
||||||
vmImage: windows-2019
|
vmImage: windows-2019
|
||||||
params:
|
params:
|
||||||
installAllDeps: false
|
installAllDeps: false
|
||||||
vars:
|
vars:
|
||||||
TARGET: x86_64-pc-windows-gnu
|
TARGET: x86_64-pc-windows-gnu
|
||||||
TOOLCHAIN: stable-x86_64-pc-windows-gnu
|
TOOLCHAIN: stable-x86_64-pc-windows-gnu
|
||||||
|
|
||||||
- name: windows_extdeps
|
- name: windows_extdeps
|
||||||
vmImage: windows-2019
|
vmImage: windows-2019
|
||||||
params:
|
params:
|
||||||
canaryBuild: true
|
canaryBuild: true
|
||||||
installAllDeps: true
|
installAllDeps: true
|
||||||
explicitFeatures: "external-harfbuzz"
|
explicitFeatures: "external-harfbuzz"
|
||||||
vars:
|
vars:
|
||||||
TARGET: x86_64-pc-windows-gnu
|
TARGET: x86_64-pc-windows-gnu
|
||||||
TOOLCHAIN: stable-x86_64-pc-windows-gnu
|
TOOLCHAIN: stable-x86_64-pc-windows-gnu
|
||||||
|
|
||||||
- name: linux_ftmtx_none
|
- name: linux_ftmtx_none
|
||||||
vmImage: ubuntu-22.04
|
vmImage: ubuntu-22.04
|
||||||
params:
|
params:
|
||||||
canaryBuild: true
|
canaryBuild: true
|
||||||
installAllDeps: false
|
installAllDeps: false
|
||||||
defaultFeatures: false
|
defaultFeatures: false
|
||||||
vars:
|
vars:
|
||||||
TARGET: x86_64-unknown-linux-gnu
|
TARGET: x86_64-unknown-linux-gnu
|
||||||
TOOLCHAIN: stable
|
TOOLCHAIN: stable
|
||||||
|
|
||||||
- name: linux_ftmtx_all
|
- name: linux_ftmtx_all
|
||||||
vmImage: ubuntu-22.04
|
vmImage: ubuntu-22.04
|
||||||
params:
|
params:
|
||||||
canaryBuild: true
|
canaryBuild: true
|
||||||
installAllDeps: true
|
installAllDeps: true
|
||||||
explicitFeatures: _all_
|
explicitFeatures: _all_
|
||||||
vars:
|
vars:
|
||||||
TARGET: x86_64-unknown-linux-gnu
|
TARGET: x86_64-unknown-linux-gnu
|
||||||
TOOLCHAIN: stable
|
TOOLCHAIN: stable
|
||||||
|
|
||||||
- name: linux_ftmtx_curl
|
- name: linux_ftmtx_curl
|
||||||
vmImage: ubuntu-22.04
|
vmImage: ubuntu-22.04
|
||||||
params:
|
params:
|
||||||
canaryBuild: true
|
canaryBuild: true
|
||||||
installAllDeps: true
|
installAllDeps: true
|
||||||
defaultFeatures: false
|
defaultFeatures: false
|
||||||
explicitFeatures: "geturl-curl serialization"
|
explicitFeatures: "geturl-curl serialization"
|
||||||
vars:
|
vars:
|
||||||
TARGET: x86_64-unknown-linux-gnu
|
TARGET: x86_64-unknown-linux-gnu
|
||||||
TOOLCHAIN: stable
|
TOOLCHAIN: stable
|
||||||
|
|
||||||
- name: vcpkgBuilds
|
- name: vcpkgBuilds
|
||||||
type: object
|
type: object
|
||||||
default:
|
default:
|
||||||
- name: x86_64_unknown_linux_gnu
|
- name: x86_64_unknown_linux_gnu
|
||||||
vmImage: ubuntu-22.04
|
vmImage: ubuntu-22.04
|
||||||
params:
|
params:
|
||||||
canaryBuild: true
|
canaryBuild: true
|
||||||
vars:
|
vars:
|
||||||
TARGET: x86_64-unknown-linux-gnu
|
TARGET: x86_64-unknown-linux-gnu
|
||||||
TOOLCHAIN: stable
|
TOOLCHAIN: stable
|
||||||
|
|
||||||
- name: x86_64_apple_darwin
|
- name: x86_64_apple_darwin
|
||||||
vmImage: macos-11
|
vmImage: macos-12
|
||||||
params: {}
|
params: { }
|
||||||
vars:
|
vars:
|
||||||
TARGET: x86_64-apple-darwin
|
TARGET: x86_64-apple-darwin
|
||||||
TOOLCHAIN: stable
|
TOOLCHAIN: stable
|
||||||
|
|
||||||
- name: aarch64_apple_darwin
|
- name: aarch64_apple_darwin
|
||||||
vmImage: macos-11
|
vmImage: macos-12
|
||||||
params:
|
params:
|
||||||
testIt: false
|
testIt: false
|
||||||
vars:
|
vars:
|
||||||
TARGET: aarch64-apple-darwin
|
TARGET: aarch64-apple-darwin
|
||||||
TOOLCHAIN: stable
|
TOOLCHAIN: stable
|
||||||
|
|
||||||
- name: x86_64_pc_windows_msvc
|
- name: x86_64_pc_windows_msvc
|
||||||
vmImage: windows-2019
|
vmImage: windows-2019
|
||||||
params: {}
|
params: { }
|
||||||
vars:
|
vars:
|
||||||
TARGET: x86_64-pc-windows-msvc
|
TARGET: x86_64-pc-windows-msvc
|
||||||
TOOLCHAIN: stable-x86_64-pc-windows-msvc
|
TOOLCHAIN: stable-x86_64-pc-windows-msvc
|
||||||
|
|
||||||
- name: crossBuilds
|
- name: crossBuilds
|
||||||
type: object
|
type: object
|
||||||
default:
|
default:
|
||||||
- name: aarch64_unknown_linux_musl
|
- name: aarch64_unknown_linux_musl
|
||||||
vars:
|
vars:
|
||||||
TARGET: aarch64-unknown-linux-musl
|
TARGET: aarch64-unknown-linux-musl
|
||||||
|
|
||||||
- name: arm_unknown_linux_musleabihf
|
- name: arm_unknown_linux_musleabihf
|
||||||
vars:
|
vars:
|
||||||
TARGET: arm-unknown-linux-musleabihf
|
TARGET: arm-unknown-linux-musleabihf
|
||||||
|
|
||||||
- name: i686_unknown_linux_gnu
|
- name: i686_unknown_linux_gnu
|
||||||
vars:
|
vars:
|
||||||
TARGET: i686-unknown-linux-gnu
|
TARGET: i686-unknown-linux-gnu
|
||||||
|
|
||||||
- name: x86_64_unknown_linux_musl
|
- name: x86_64_unknown_linux_musl
|
||||||
vars:
|
vars:
|
||||||
TARGET: x86_64-unknown-linux-musl
|
TARGET: x86_64-unknown-linux-musl
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
# rustfmt check
|
# rustfmt check
|
||||||
- job: rustfmt
|
- job: rustfmt
|
||||||
pool:
|
|
||||||
vmImage: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- bash: rustup component add rustfmt
|
|
||||||
displayName: "Install rustfmt"
|
|
||||||
- bash: cargo fmt --all -- --check
|
|
||||||
displayName: "Check rustfmt (cargo)"
|
|
||||||
variables:
|
|
||||||
TOOLCHAIN: stable
|
|
||||||
|
|
||||||
# clippy check
|
|
||||||
- job: clippy
|
|
||||||
pool:
|
|
||||||
vmImage: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- template: azure-generic-build-setup.yml
|
|
||||||
- bash: |
|
|
||||||
rustup component add clippy
|
|
||||||
cargo clippy --version
|
|
||||||
displayName: "Install clippy"
|
|
||||||
# Ew, redundant with stock builds:
|
|
||||||
- bash: |
|
|
||||||
set -xeuo pipefail
|
|
||||||
sudo apt-get update
|
|
||||||
sudo env DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
|
||||||
libgraphite2-dev \
|
|
||||||
libharfbuzz-dev \
|
|
||||||
libfontconfig1-dev \
|
|
||||||
libicu-dev \
|
|
||||||
libssl-dev \
|
|
||||||
openssl \
|
|
||||||
zlib1g-dev
|
|
||||||
displayName: "Install pkg-config dependencies (Ubuntu)"
|
|
||||||
- bash: cargo clippy --all --all-targets --all-features -- --deny warnings
|
|
||||||
displayName: "Check clippy (cargo)"
|
|
||||||
variables:
|
|
||||||
TOOLCHAIN: stable
|
|
||||||
|
|
||||||
# pkg-config builds
|
|
||||||
- ${{ each build in parameters.pkgconfigBuilds }}:
|
|
||||||
- job: ${{ format('build_{0}_pkgconfig', build.name) }}
|
|
||||||
pool:
|
pool:
|
||||||
vmImage: ${{ build.vmImage }}
|
vmImage: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- template: azure-build-and-test-pkgconfig.yml
|
- bash: rustup component add rustfmt
|
||||||
parameters:
|
displayName: "Install rustfmt"
|
||||||
${{ insert }}: ${{ build.params }}
|
- bash: cargo fmt --all -- --check
|
||||||
variables:
|
displayName: "Check rustfmt (cargo)"
|
||||||
${{ insert }}: ${{ build.vars }}
|
|
||||||
|
|
||||||
# vcpkg builds
|
|
||||||
- ${{ each build in parameters.vcpkgBuilds }}:
|
|
||||||
- job: ${{ format('build_{0}_vcpkg', build.name) }}
|
|
||||||
pool:
|
|
||||||
vmImage: ${{ build.vmImage }}
|
|
||||||
steps:
|
|
||||||
- template: azure-build-and-test-vcpkg.yml
|
|
||||||
parameters:
|
|
||||||
${{ insert }}: ${{ build.params }}
|
|
||||||
variables:
|
|
||||||
${{ insert }}: ${{ build.vars }}
|
|
||||||
|
|
||||||
# cross builds
|
|
||||||
- ${{ each build in parameters.crossBuilds }}:
|
|
||||||
- job: ${{ format('cross_{0}', build.name) }}
|
|
||||||
pool:
|
|
||||||
vmImage: ubuntu-22.04
|
|
||||||
steps:
|
|
||||||
- template: azure-build-and-test-cross.yml
|
|
||||||
variables:
|
variables:
|
||||||
TOOLCHAIN: stable
|
TOOLCHAIN: stable
|
||||||
${{ insert }}: ${{ build.vars }}
|
|
||||||
|
|
||||||
# coverage analysis check
|
# clippy check
|
||||||
- job: coverage
|
- job: clippy
|
||||||
pool:
|
pool:
|
||||||
vmImage: ubuntu-latest
|
vmImage: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- template: azure-coverage.yml
|
- template: azure-generic-build-setup.yml
|
||||||
variables:
|
- bash: |
|
||||||
TOOLCHAIN: stable
|
rustup component add clippy
|
||||||
|
cargo clippy --version
|
||||||
|
displayName: "Install clippy"
|
||||||
|
# Ew, redundant with stock builds:
|
||||||
|
- bash: |
|
||||||
|
set -xeuo pipefail
|
||||||
|
sudo apt-get update
|
||||||
|
sudo env DEBIAN_FRONTEND=noninteractive apt-get install -y \
|
||||||
|
libgraphite2-dev \
|
||||||
|
libharfbuzz-dev \
|
||||||
|
libfontconfig1-dev \
|
||||||
|
libicu-dev \
|
||||||
|
libssl-dev \
|
||||||
|
openssl \
|
||||||
|
zlib1g-dev
|
||||||
|
displayName: "Install pkg-config dependencies (Ubuntu)"
|
||||||
|
- bash: cargo clippy --all --all-targets --all-features -- --deny warnings
|
||||||
|
displayName: "Check clippy (cargo)"
|
||||||
|
variables:
|
||||||
|
TOOLCHAIN: stable
|
||||||
|
|
||||||
# book build
|
# pkg-config builds
|
||||||
- job: book
|
- ${{ each build in parameters.pkgconfigBuilds }}:
|
||||||
pool:
|
- job: ${{ format('build_{0}_pkgconfig', build.name) }}
|
||||||
vmImage: ubuntu-latest
|
pool:
|
||||||
steps:
|
vmImage: ${{ build.vmImage }}
|
||||||
- template: azure-generic-build-setup.yml
|
steps:
|
||||||
- bash: |
|
- template: azure-build-and-test-pkgconfig.yml
|
||||||
fn="mdbook-v$(MDBOOK_VERSION)-x86_64-unknown-linux-gnu.tar.gz"
|
parameters:
|
||||||
url="https://github.com/rust-lang/mdBook/releases/download/v$(MDBOOK_VERSION)/$fn"
|
${{ insert }}: ${{ build.params }}
|
||||||
wget -q --progress=dot "$url"
|
variables:
|
||||||
tar xzf "$fn"
|
${{ insert }}: ${{ build.vars }}
|
||||||
rm -f "$fn"
|
|
||||||
displayName: Install mdbook $(MDBOOK_VERSION)
|
# vcpkg builds
|
||||||
- bash: cargo build -p tectonic_cfg_support
|
- ${{ each build in parameters.vcpkgBuilds }}:
|
||||||
displayName: Mini cargo build
|
- job: ${{ format('build_{0}_vcpkg', build.name) }}
|
||||||
- bash: |
|
pool:
|
||||||
git add .
|
vmImage: ${{ build.vmImage }}
|
||||||
cranko release-workflow commit
|
steps:
|
||||||
git show HEAD
|
- template: azure-build-and-test-vcpkg.yml
|
||||||
displayName: cranko release-workflow commit
|
parameters:
|
||||||
- bash: |
|
${{ insert }}: ${{ build.params }}
|
||||||
artifact_dir="$(Build.ArtifactStagingDirectory)/book"
|
variables:
|
||||||
mkdir -p "$artifact_dir"
|
${{ insert }}: ${{ build.vars }}
|
||||||
cd docs && ../mdbook build -d "$artifact_dir"
|
|
||||||
displayName: mdbook build
|
# cross builds
|
||||||
- task: PublishPipelineArtifact@1
|
- ${{ each build in parameters.crossBuilds }}:
|
||||||
displayName: Publish book artifacts
|
- job: ${{ format('cross_{0}', build.name) }}
|
||||||
inputs:
|
pool:
|
||||||
targetPath: '$(Build.ArtifactStagingDirectory)/book'
|
vmImage: ubuntu-22.04
|
||||||
artifactName: book
|
steps:
|
||||||
- bash: cd docs && ../mdbook test
|
- template: azure-build-and-test-cross.yml
|
||||||
displayName: mdbook test
|
variables:
|
||||||
|
TOOLCHAIN: stable
|
||||||
|
${{ insert }}: ${{ build.vars }}
|
||||||
|
|
||||||
|
# coverage analysis check
|
||||||
|
- job: coverage
|
||||||
|
pool:
|
||||||
|
vmImage: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- template: azure-coverage.yml
|
||||||
|
variables:
|
||||||
|
TOOLCHAIN: stable
|
||||||
|
|
||||||
|
# book build
|
||||||
|
- job: book
|
||||||
|
pool:
|
||||||
|
vmImage: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- template: azure-generic-build-setup.yml
|
||||||
|
- bash: |
|
||||||
|
fn="mdbook-v$(MDBOOK_VERSION)-x86_64-unknown-linux-gnu.tar.gz"
|
||||||
|
url="https://github.com/rust-lang/mdBook/releases/download/v$(MDBOOK_VERSION)/$fn"
|
||||||
|
wget -q --progress=dot "$url"
|
||||||
|
tar xzf "$fn"
|
||||||
|
rm -f "$fn"
|
||||||
|
displayName: Install mdbook $(MDBOOK_VERSION)
|
||||||
|
- bash: cargo build -p tectonic_cfg_support
|
||||||
|
displayName: Mini cargo build
|
||||||
|
- bash: |
|
||||||
|
git add .
|
||||||
|
cranko release-workflow commit
|
||||||
|
git show HEAD
|
||||||
|
displayName: cranko release-workflow commit
|
||||||
|
- bash: |
|
||||||
|
artifact_dir="$(Build.ArtifactStagingDirectory)/book"
|
||||||
|
mkdir -p "$artifact_dir"
|
||||||
|
cd docs && ../mdbook build -d "$artifact_dir"
|
||||||
|
displayName: mdbook build
|
||||||
|
- task: PublishPipelineArtifact@1
|
||||||
|
displayName: Publish book artifacts
|
||||||
|
inputs:
|
||||||
|
targetPath: '$(Build.ArtifactStagingDirectory)/book'
|
||||||
|
artifactName: book
|
||||||
|
- bash: cd docs && ../mdbook test
|
||||||
|
displayName: mdbook test
|
||||||
|
|
Loading…
Reference in New Issue