From d5f26a835367c27f5ad08240623da8ee3dc5bf7d Mon Sep 17 00:00:00 2001 From: "Oleksandr.Didyk" Date: Tue, 3 Jan 2023 12:26:43 +0100 Subject: [PATCH 1/2] add source-build pre-built detection --- eng/SourceBuildPrebuiltBaseline.xml | 3 +- eng/Version.Details.xml | 19 ++++- eng/Versions.props | 6 ++ .../build-configuration.json | 4 + eng/common/native/init-compiler.sh | 81 +++++++++---------- eng/common/templates/job/job.yml | 6 ++ eng/common/templates/job/onelocbuild.yml | 14 ++-- eng/common/tools.ps1 | 3 +- eng/common/tools.sh | 4 +- global.json | 2 +- 10 files changed, 86 insertions(+), 56 deletions(-) create mode 100644 eng/common/BuildConfiguration/build-configuration.json diff --git a/eng/SourceBuildPrebuiltBaseline.xml b/eng/SourceBuildPrebuiltBaseline.xml index c1b6dfbf05..3169733362 100644 --- a/eng/SourceBuildPrebuiltBaseline.xml +++ b/eng/SourceBuildPrebuiltBaseline.xml @@ -1,5 +1,6 @@ + - + diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml index 70b036cb83..1be9b1427e 100644 --- a/eng/Version.Details.xml +++ b/eng/Version.Details.xml @@ -3,10 +3,25 @@ - + https://github.com/dotnet/arcade - 3e24006ee217f68b0c8a36cf272536ac239c9c47 + 5a5ae41c42e475e280342b668e668ff34539e36d + + https://github.com/dotnet/source-build-reference-packages + 31f422237eabbd5c89ecbd0f4a6f53e2c495422f + + + + https://github.com/dotnet/sourcelink + d047202874ad79d72c75b6354c0f8a9a12d1b054 + + + + https://github.com/dotnet/xliff-tasks + ca611a68bb48cedf72a782d41622453cb2dab100 + + diff --git a/eng/Versions.props b/eng/Versions.props index 4fa6312d1c..ab452904f2 100644 --- a/eng/Versions.props +++ b/eng/Versions.props @@ -30,4 +30,10 @@ true true + + + 8.0.0-alpha.1.22616.1 + 1.2.0-beta-22518-02 + 1.0.0-beta.22631.1 + diff --git a/eng/common/BuildConfiguration/build-configuration.json b/eng/common/BuildConfiguration/build-configuration.json new file mode 100644 index 0000000000..3d1cc89894 --- /dev/null +++ b/eng/common/BuildConfiguration/build-configuration.json @@ -0,0 +1,4 @@ +{ + "RetryCountLimit": 1, + "RetryByAnyError": false +} diff --git a/eng/common/native/init-compiler.sh b/eng/common/native/init-compiler.sh index 292ebb6535..c670cb7968 100644 --- a/eng/common/native/init-compiler.sh +++ b/eng/common/native/init-compiler.sh @@ -1,30 +1,25 @@ -#!/usr/bin/env bash +#!/bin/sh # # This file detects the C/C++ compiler and exports it to the CC/CXX environment variables # # NOTE: some scripts source this file and rely on stdout being empty, make sure to not output anything here! -if [[ "$#" -lt 3 ]]; then +if [ -z "$build_arch" ] || [ -z "$compiler" ]; then echo "Usage..." - echo "init-compiler.sh