Skip to content

Commit

Permalink
Use Arcade to manage .NET Core installation and remove custom logger …
Browse files Browse the repository at this point in the history
…download (#1692)

* Use Arcade to manage .NET Core installation
* Remove azpbuild in favor of arcade logger
* Disable AzP logger - see dotnet/arcade#2760
  • Loading branch information
natemcmaster authored May 14, 2019
1 parent f497a4b commit b9719c8
Show file tree
Hide file tree
Showing 12 changed files with 103 additions and 1,719 deletions.
7 changes: 3 additions & 4 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ jobs:
${{ if or(eq(variables['System.TeamProject'], 'public'), in(variables['Build.Reason'], 'PullRequest')) }}:
_SignType: test
_DotNetPublishToBlobFeed: false
_BuildArgs:
${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
_SignType: real
_DotNetPublishToBlobFeed: true
Expand All @@ -104,7 +103,7 @@ jobs:
inputs:
command: custom
arguments: 'locals all -clear'
- powershell: eng\scripts\azpbuild.ps1 -configuration $(_BuildConfig) $(_BuildArgs)
- script: eng\common\cibuild.cmd -configuration $(_BuildConfig) -prepareMachine $(_BuildArgs)
displayName: Build and Publish
- script: eng\scripts\ci-flaky-tests.cmd -configuration $(_BuildConfig)
displayName: Run Flaky Tests
Expand Down Expand Up @@ -150,7 +149,7 @@ jobs:
steps:
- checkout: self
clean: true
- script: eng/scripts/azpbuild.sh
- script: eng/common/cibuild.sh
--configuration $(_BuildConfig)
--prepareMachine
displayName: Build
Expand Down Expand Up @@ -187,7 +186,7 @@ jobs:
steps:
- checkout: self
clean: true
- script: eng/scripts/azpbuild.sh
- script: eng/common/cibuild.sh
--configuration $(_BuildConfig)
--prepareMachine
displayName: Build
Expand Down
35 changes: 0 additions & 35 deletions eng/Tools.props

This file was deleted.

12 changes: 6 additions & 6 deletions eng/Version.Details.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,17 +68,17 @@
</Dependency>
</ProductDependencies>
<ToolsetDependencies>
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="1.0.0-beta.19256.12">
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="1.0.0-beta.19260.1">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>c31fac9f6899094226cb5cd77c85b8f60ecafa3d</Sha>
<Sha>ecc21c84eda18ff9d0f5590f1b446ced8c5d9c1a</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.GenAPI" Version="1.0.0-beta.19256.12">
<Dependency Name="Microsoft.DotNet.GenAPI" Version="1.0.0-beta.19260.1">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>c31fac9f6899094226cb5cd77c85b8f60ecafa3d</Sha>
<Sha>ecc21c84eda18ff9d0f5590f1b446ced8c5d9c1a</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="2.0.0-beta.19256.12">
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="2.0.0-beta.19260.1">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>c31fac9f6899094226cb5cd77c85b8f60ecafa3d</Sha>
<Sha>ecc21c84eda18ff9d0f5590f1b446ced8c5d9c1a</Sha>
</Dependency>
<Dependency Name="Microsoft.NETCore.Platforms" Version="3.0.0-preview6.19260.5" CoherentParentDependency="Microsoft.NETCore.App">
<Uri>https://github.com/dotnet/corefx</Uri>
Expand Down
6 changes: 2 additions & 4 deletions eng/Versions.props
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

<!--
This file defines the versions of external dependencies used by this repo.
Expand Down Expand Up @@ -36,7 +37,7 @@
<!-- Workaround https://github.com/dotnet/cli/issues/10528-->
<MicrosoftNETCorePlatformsPackageVersion>3.0.0-preview6.19260.5</MicrosoftNETCorePlatformsPackageVersion>
<!-- Packages from dotnet/arcade -->
<MicrosoftDotNetGenAPIPackageVersion>1.0.0-beta.19256.12</MicrosoftDotNetGenAPIPackageVersion>
<MicrosoftDotNetGenAPIPackageVersion>1.0.0-beta.19260.1</MicrosoftDotNetGenAPIPackageVersion>
</PropertyGroup>
<!--
Expand All @@ -55,7 +56,4 @@
<SystemThreadingTasksExtensionsPackageVersion>4.5.2</SystemThreadingTasksExtensionsPackageVersion>
<SystemValueTuplePackageVersion>4.5.0</SystemValueTuplePackageVersion>
</PropertyGroup>
<ItemGroup>
<DotNetRuntime Include="$(MicrosoftNETCoreAppPackageVersion)" />
</ItemGroup>
</Project>
58 changes: 36 additions & 22 deletions eng/common/cross/build-rootfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@

usage()
{
echo "Usage: $0 [BuildArch] [LinuxCodeName] [lldbx.y] [--skipunmount]"
echo "Usage: $0 [BuildArch] [LinuxCodeName] [lldbx.y] [--skipunmount] --rootfs <directory>]"
echo "BuildArch can be: arm(default), armel, arm64, x86"
echo "LinuxCodeName - optional, Code name for Linux, can be: trusty(default), vivid, wily, xenial, zesty, bionic, alpine. If BuildArch is armel, LinuxCodeName is jessie(default) or tizen."
echo "lldbx.y - optional, LLDB version, can be: lldb3.6(default), lldb3.8, lldb3.9, lldb4.0, no-lldb. Ignored for alpine"
echo "LinuxCodeName - optional, Code name for Linux, can be: trusty, xenial(default), zesty, bionic, alpine. If BuildArch is armel, LinuxCodeName is jessie(default) or tizen."
echo "lldbx.y - optional, LLDB version, can be: lldb3.9(default), lldb4.0, lldb5.0, lldb6.0 no-lldb. Ignored for alpine"
echo "--skipunmount - optional, will skip the unmount of rootfs folder."
exit 1
}

__LinuxCodeName=trusty
__LinuxCodeName=xenial
__CrossDir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
__InitialDir=$PWD
__BuildArch=arm
__UbuntuArch=armhf
__UbuntuRepo="http://ports.ubuntu.com/"
__LLDB_Package="lldb-3.6-dev"
__LLDB_Package="liblldb-3.9-dev"
__SkipUnmount=0

# base development support
Expand Down Expand Up @@ -53,8 +53,12 @@ __AlpinePackages+=" openssl-dev"
__AlpinePackages+=" zlib-dev"

__UnprocessedBuildArgs=
for i in "$@" ; do
lowerI="$(echo $i | awk '{print tolower($0)}')"
while :; do
if [ $# -le 0 ]; then
break
fi

lowerI="$(echo $1 | awk '{print tolower($0)}')"
case $lowerI in
-?|-h|--help)
usage
Expand Down Expand Up @@ -95,38 +99,40 @@ for i in "$@" ; do
lldb4.0)
__LLDB_Package="liblldb-4.0-dev"
;;
lldb5.0)
__LLDB_Package="liblldb-5.0-dev"
;;
lldb6.0)
__LLDB_Package="liblldb-6.0-dev"
;;
no-lldb)
unset __LLDB_Package
;;
vivid)
if [ "$__LinuxCodeName" != "jessie" ]; then
__LinuxCodeName=vivid
fi
;;
wily)
trusty) # Ubuntu 14.04
if [ "$__LinuxCodeName" != "jessie" ]; then
__LinuxCodeName=wily
__LinuxCodeName=trusty
fi
;;
xenial)
xenial) # Ubunry 16.04
if [ "$__LinuxCodeName" != "jessie" ]; then
__LinuxCodeName=xenial
fi
;;
zesty)
zesty) # Ununtu 17.04
if [ "$__LinuxCodeName" != "jessie" ]; then
__LinuxCodeName=zesty
fi
;;
bionic)
bionic) # Ubuntu 18.04
if [ "$__LinuxCodeName" != "jessie" ]; then
__LinuxCodeName=bionic
fi
;;
jessie)
jessie) # Debian 8
__LinuxCodeName=jessie
__UbuntuRepo="http://ftp.debian.org/debian/"
;;
# TBD Stretch -> Debian 9, Buster -> Debian 10
tizen)
if [ "$__BuildArch" != "armel" ]; then
echo "Tizen is available only for armel."
Expand All @@ -144,23 +150,31 @@ for i in "$@" ; do
--skipunmount)
__SkipUnmount=1
;;
--rootfsdir|-rootfsdir)
shift
__RootfsDir=$1
;;
*)
__UnprocessedBuildArgs="$__UnprocessedBuildArgs $i"
__UnprocessedBuildArgs="$__UnprocessedBuildArgs $1"
;;
esac

shift
done

if [ "$__BuildArch" == "armel" ]; then
__LLDB_Package="lldb-3.5-dev"
fi
__UbuntuPackages+=" ${__LLDB_Package:-}"

__RootfsDir="$__CrossDir/rootfs/$__BuildArch"

if [[ -n "$ROOTFS_DIR" ]]; then
if [ -z "$__RootfsDir" ] && [ ! -z "$ROOTFS_DIR" ]; then
__RootfsDir=$ROOTFS_DIR
fi

if [ -z "$__RootfsDir" ]; then
__RootfsDir="$__CrossDir/rootfs/$__BuildArch"
fi

if [ -d "$__RootfsDir" ]; then
if [ $__SkipUnmount == 0 ]; then
umount $__RootfsDir/*
Expand Down
Loading

0 comments on commit b9719c8

Please sign in to comment.