-
Notifications
You must be signed in to change notification settings - Fork 259
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[main] Update dependencies from devdiv/DevDiv/vs-code-coverage, dotne…
…t/arcade, microsoft/testanywhere (#3944) Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> Co-authored-by: Amaury Levé <[email protected]>
- Loading branch information
1 parent
da2ebf8
commit 974b6bd
Showing
11 changed files
with
159 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
parameters: | ||
# Enable cleanup tasks for MicroBuild | ||
enableMicrobuild: false | ||
# Enable cleanup tasks for MicroBuild on Mac and Linux | ||
# Will be ignored if 'enableMicrobuild' is false or 'Agent.Os' is 'Windows_NT' | ||
enableMicrobuildForMacAndLinux: false | ||
continueOnError: false | ||
|
||
steps: | ||
- ${{ if eq(parameters.enableMicrobuild, 'true') }}: | ||
- task: MicroBuildCleanup@1 | ||
displayName: Execute Microbuild cleanup tasks | ||
condition: and( | ||
always(), | ||
or( | ||
and( | ||
eq(variables['Agent.Os'], 'Windows_NT'), | ||
in(variables['_SignType'], 'real', 'test') | ||
), | ||
and( | ||
${{ eq(parameters.enableMicrobuildForMacAndLinux, true) }}, | ||
ne(variables['Agent.Os'], 'Windows_NT'), | ||
eq(variables['_SignType'], 'real') | ||
) | ||
)) | ||
continueOnError: ${{ parameters.continueOnError }} | ||
env: | ||
TeamName: $(_TeamName) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
parameters: | ||
# Enable cleanup tasks for MicroBuild | ||
enableMicrobuild: false | ||
# Enable cleanup tasks for MicroBuild on Mac and Linux | ||
# Will be ignored if 'enableMicrobuild' is false or 'Agent.Os' is 'Windows_NT' | ||
enableMicrobuildForMacAndLinux: false | ||
continueOnError: false | ||
|
||
steps: | ||
- ${{ if eq(parameters.enableMicrobuild, 'true') }}: | ||
# Remove Python downgrade with https://github.com/dotnet/arcade/issues/15151 | ||
- ${{ if and(eq(parameters.enableMicrobuildForMacAndLinux, 'true'), ne(variables['Agent.Os'], 'Windows_NT')) }}: | ||
- task: UsePythonVersion@0 | ||
displayName: 'Use Python 3.11.x' | ||
inputs: | ||
versionSpec: '3.11.x' | ||
|
||
- task: MicroBuildSigningPlugin@4 | ||
displayName: Install MicroBuild plugin | ||
inputs: | ||
signType: $(_SignType) | ||
zipSources: false | ||
feedSource: https://dnceng.pkgs.visualstudio.com/_packaging/MicroBuildToolset/nuget/v3/index.json | ||
${{ if and(eq(parameters.enableMicrobuildForMacAndLinux, 'true'), ne(variables['Agent.Os'], 'Windows_NT')) }}: | ||
azureSubscription: 'MicroBuild Signing Task (DevDiv)' | ||
env: | ||
TeamName: $(_TeamName) | ||
MicroBuildOutputFolderOverride: '$(Agent.TempDirectory)' | ||
SYSTEM_ACCESSTOKEN: $(System.AccessToken) | ||
continueOnError: ${{ parameters.continueOnError }} | ||
condition: and( | ||
succeeded(), | ||
or( | ||
and( | ||
eq(variables['Agent.Os'], 'Windows_NT'), | ||
in(variables['_SignType'], 'real', 'test') | ||
), | ||
and( | ||
${{ eq(parameters.enableMicrobuildForMacAndLinux, true) }}, | ||
ne(variables['Agent.Os'], 'Windows_NT'), | ||
eq(variables['_SignType'], 'real') | ||
) | ||
)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
# This is a simple script primarily used for CI to install necessary dependencies | ||
# | ||
# Usage: | ||
# | ||
# ./install-dependencies.sh <OS> | ||
|
||
os="$(echo "$1" | tr "[:upper:]" "[:lower:]")" | ||
|
||
if [ -z "$os" ]; then | ||
. "$(dirname "$0")"/init-os-and-arch.sh | ||
fi | ||
|
||
case "$os" in | ||
linux) | ||
if [ -e /etc/os-release ]; then | ||
. /etc/os-release | ||
fi | ||
|
||
if [ "$ID" = "debian" ] || [ "$ID_LIKE" = "debian" ]; then | ||
apt update | ||
|
||
apt install -y build-essential gettext locales cmake llvm clang lld lldb liblldb-dev libunwind8-dev libicu-dev liblttng-ust-dev \ | ||
libssl-dev libkrb5-dev zlib1g-dev pigz | ||
|
||
localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 | ||
elif [ "$ID" = "fedora" ]; then | ||
dnf install -y cmake llvm lld lldb clang python curl libicu-devel openssl-devel krb5-devel zlib-devel lttng-ust-devel pigz | ||
elif [ "$ID" = "alpine" ]; then | ||
apk add build-base cmake bash curl clang llvm-dev lld lldb krb5-dev lttng-ust-dev icu-dev zlib-dev openssl-dev pigz | ||
else | ||
echo "Unsupported distro. distro: $ID" | ||
exit 1 | ||
fi | ||
;; | ||
|
||
osx|maccatalyst|ios|iossimulator|tvos|tvossimulator) | ||
echo "Installed xcode version: $(xcode-select -p)" | ||
|
||
export HOMEBREW_NO_INSTALL_CLEANUP=1 | ||
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 | ||
# Skip brew update for now, see https://github.com/actions/setup-python/issues/577 | ||
# brew update --preinstall | ||
brew bundle --no-upgrade --no-lock --file=- <<EOF | ||
brew "cmake" | ||
brew "icu4c" | ||
brew "openssl@3" | ||
brew "pkg-config" | ||
brew "python3" | ||
brew "pigz" | ||
EOF | ||
;; | ||
|
||
*) | ||
echo "Unsupported platform. OS: $os" | ||
exit 1 | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters