ci: switch macOS builders to 10.15
This commit is contained in:
parent
75b98fbe77
commit
79c166ef73
@ -1051,10 +1051,10 @@ fn run(self, builder: &Builder<'_>) {
|
|||||||
cmd.arg("--docck-python").arg(builder.python());
|
cmd.arg("--docck-python").arg(builder.python());
|
||||||
|
|
||||||
if builder.config.build.ends_with("apple-darwin") {
|
if builder.config.build.ends_with("apple-darwin") {
|
||||||
// Force /usr/bin/python on macOS for LLDB tests because we're loading the
|
// Force /usr/bin/python3 on macOS for LLDB tests because we're loading the
|
||||||
// LLDB plugin's compiled module which only works with the system python
|
// LLDB plugin's compiled module which only works with the system python
|
||||||
// (namely not Homebrew-installed python)
|
// (namely not Homebrew-installed python)
|
||||||
cmd.arg("--lldb-python").arg("/usr/bin/python");
|
cmd.arg("--lldb-python").arg("/usr/bin/python3");
|
||||||
} else {
|
} else {
|
||||||
cmd.arg("--lldb-python").arg(builder.python());
|
cmd.arg("--lldb-python").arg(builder.python());
|
||||||
}
|
}
|
||||||
|
@ -63,7 +63,7 @@ jobs:
|
|||||||
- job: macOS
|
- job: macOS
|
||||||
timeoutInMinutes: 600
|
timeoutInMinutes: 600
|
||||||
pool:
|
pool:
|
||||||
vmImage: macos-10.13
|
vmImage: macos-10.15
|
||||||
steps:
|
steps:
|
||||||
- template: steps/run.yml
|
- template: steps/run.yml
|
||||||
strategy:
|
strategy:
|
||||||
|
@ -48,10 +48,6 @@ steps:
|
|||||||
displayName: Install clang
|
displayName: Install clang
|
||||||
condition: and(succeeded(), not(variables.SKIP_JOB))
|
condition: and(succeeded(), not(variables.SKIP_JOB))
|
||||||
|
|
||||||
- bash: src/ci/scripts/switch-xcode.sh
|
|
||||||
displayName: Switch to Xcode 9.3
|
|
||||||
condition: and(succeeded(), not(variables.SKIP_JOB))
|
|
||||||
|
|
||||||
- bash: src/ci/scripts/install-wix.sh
|
- bash: src/ci/scripts/install-wix.sh
|
||||||
displayName: Install wix
|
displayName: Install wix
|
||||||
condition: and(succeeded(), not(variables.SKIP_JOB))
|
condition: and(succeeded(), not(variables.SKIP_JOB))
|
||||||
|
@ -25,7 +25,7 @@ jobs:
|
|||||||
# - job: macOS
|
# - job: macOS
|
||||||
# timeoutInMinutes: 600
|
# timeoutInMinutes: 600
|
||||||
# pool:
|
# pool:
|
||||||
# vmImage: macos-10.13
|
# vmImage: macos-10.15
|
||||||
# steps:
|
# steps:
|
||||||
# - template: steps/run.yml
|
# - template: steps/run.yml
|
||||||
# strategy:
|
# strategy:
|
||||||
|
@ -19,9 +19,7 @@ if isMacOS; then
|
|||||||
# native clang is configured to use the correct path, but our custom one
|
# native clang is configured to use the correct path, but our custom one
|
||||||
# doesn't. This sets the SDKROOT environment variable to the SDK so that
|
# doesn't. This sets the SDKROOT environment variable to the SDK so that
|
||||||
# our own clang can figure out the correct include path on its own.
|
# our own clang can figure out the correct include path on its own.
|
||||||
if ! [[ -d "/usr/include" ]]; then
|
ciCommandSetEnv SDKROOT "$(xcrun --sdk macosx --show-sdk-path)"
|
||||||
ciCommandSetEnv SDKROOT "$(xcrun --sdk macosx --show-sdk-path)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Configure `AR` specifically so rustbuild doesn't try to infer it as
|
# Configure `AR` specifically so rustbuild doesn't try to infer it as
|
||||||
# `clang-ar` by accident.
|
# `clang-ar` by accident.
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# Switch to XCode 9.3 on OSX since it seems to be the last version that supports
|
|
||||||
# i686-apple-darwin. We'll eventually want to upgrade this and it will probably
|
|
||||||
# force us to drop i686-apple-darwin, but let's keep the wheels turning for now.
|
|
||||||
|
|
||||||
set -euo pipefail
|
|
||||||
IFS=$'\n\t'
|
|
||||||
|
|
||||||
source "$(cd "$(dirname "$0")" && pwd)/../shared.sh"
|
|
||||||
|
|
||||||
if isMacOS; then
|
|
||||||
sudo xcode-select --switch /Applications/Xcode_9.3.app
|
|
||||||
fi
|
|
Loading…
Reference in New Issue
Block a user