Replace the occurrences of "master" to "main" in yaml files (#12534)

This commit is contained in:
Changming Sun 2022-08-09 22:03:21 -07:00 committed by GitHub
parent 64e991a9fc
commit e810480403
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 18 additions and 35 deletions

View file

@ -61,8 +61,8 @@ jobs:
- task: AzureCLI@2
displayName: 1a. Publish binary size data
# only publish size data for CI builds on master
condition: and(succeededOrFailed(), in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI'), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
# only publish size data for CI builds on main
condition: and(succeededOrFailed(), in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI'), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
inputs:
azureSubscription: AIInfraBuild
scriptLocation: inlineScript

View file

@ -120,7 +120,7 @@ jobs:
project: 'Lotus'
preferTriggeringPipeline: true
pipeline: '841'
runBranch: 'ref/heads/master'
runBranch: 'ref/heads/main'
buildVersionToDownload: 'latest'
allowPartiallySucceededBuilds: false
artifact: 'onnxruntime_gpu'

View file

@ -1,17 +0,0 @@
schedules:
- cron: "0 8 * * *"
displayName: Daily Build
branches:
include:
- master
always: true
variables:
PackageName: 'Microsoft.ML.OnnxRuntime.Gpu'
TESTONGPU: 'ON'
jobs:
- template: templates/gpu.yml
parameters:
AgentPool : 'onnxruntime-gpu-winbuild'
DoEsrp: 'true'

View file

@ -2,7 +2,7 @@ trigger: none
variables:
- name: isMain
value: ${{ eq(variables['Build.SourceBranch'], 'refs/heads/master') }}
value: ${{ eq(variables['Build.SourceBranch'], 'refs/heads/main') }}
- name: finalStorage
${{ if eq(variables['isMain'], 'true') }}:
value: '--final_storage'

View file

@ -53,7 +53,7 @@ jobs:
value: true
dependsOn:
- CodeCoverage
condition: and (succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
condition: and (succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
steps:
- checkout: self
submodules: false

View file

@ -845,7 +845,7 @@ jobs:
- name: GDN_CODESIGN_TARGETDIRECTORY
value: '$(Build.BinariesDirectory)/nuget-artifact/final-package'
pool: 'Win-CPU-2021'
condition: and (succeeded(), and (${{ parameters.PublishingNuget }}, eq(variables['Build.SourceBranch'], 'refs/heads/master')))
condition: and (succeeded(), and (${{ parameters.PublishingNuget }}, eq(variables['Build.SourceBranch'], 'refs/heads/main')))
dependsOn:
- NuGet_Test_Win_CPU
- NuGet_Test_Linux_CPU

View file

@ -50,7 +50,7 @@ steps:
continueOnError: true
- task: securedevelopmentteam.vss-secure-development-tools.build-task-uploadtotsa.TSAUpload@1
condition: and (succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
condition: and (succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
displayName: 'TSA Upload'
inputs:
tsaVersion: TsaV2

View file

@ -269,7 +269,7 @@ stages:
- task: TSAUpload@2
displayName: 'TSA upload'
condition: and(and (succeeded(), eq(variables['PythonVersion'], '3.7')), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
condition: and(and (succeeded(), eq(variables['PythonVersion'], '3.7')), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
inputs:
GdnPublishTsaOnboard: false
GdnPublishTsaConfigFile: '$(Build.sourcesDirectory)\.gdn\.gdntsa'
@ -530,7 +530,7 @@ stages:
- task: TSAUpload@2
displayName: 'TSA upload'
condition: and(and (succeeded(), eq(variables['PythonVersion'], '3.7')), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
condition: and(and (succeeded(), eq(variables['PythonVersion'], '3.7')), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
inputs:
GdnPublishTsaOnboard: false
GdnPublishTsaConfigFile: '$(Build.sourcesDirectory)\.gdn\.gdntsa'

View file

@ -584,7 +584,7 @@ stages:
- task: TSAUpload@2
displayName: 'TSA upload'
condition: and(and (succeeded(), and(eq(variables['buildArch'], 'x64'), eq(variables['PythonVersion'], '3.7'))), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
condition: and(and (succeeded(), and(eq(variables['buildArch'], 'x64'), eq(variables['PythonVersion'], '3.7'))), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
inputs:
GdnPublishTsaOnboard: false
GdnPublishTsaConfigFile: '$(Build.sourcesDirectory)\.gdn\.gdntsa'
@ -788,7 +788,7 @@ stages:
- task: TSAUpload@2
displayName: 'TSA upload'
condition: and(and (succeeded(), eq(variables['PythonVersion'], '3.7')), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
condition: and(and (succeeded(), eq(variables['PythonVersion'], '3.7')), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
inputs:
GdnPublishTsaOnboard: false
GdnPublishTsaConfigFile: '$(Build.sourcesDirectory)\.gdn\.gdntsa'

View file

@ -51,7 +51,7 @@ stages:
variables:
- name: isMain
value: ${{ eq(variables['Build.SourceBranch'], 'refs/heads/master') }}
value: ${{ eq(variables['Build.SourceBranch'], 'refs/heads/main') }}
- name: finalStorage
${{ if eq(variables['isMain'], 'true') }}:
value: '--final_storage'

View file

@ -264,7 +264,7 @@ jobs:
- task: TSAUpload@2
displayName: 'TSA upload'
condition: and (succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
condition: and (succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
inputs:
GdnPublishTsaOnboard: false
GdnPublishTsaConfigFile: '$(Build.sourcesDirectory)\.gdn\.gdntsa'

View file

@ -9,7 +9,7 @@ FROM nvidia/cuda:11.4.0-cudnn8-devel-ubuntu${OS_VERSION}
# ONNX Runtime Variables
ARG ONNXRUNTIME_REPO=https://github.com/Microsoft/onnxruntime
ARG ONNXRUNTIME_BRANCH=master
ARG ONNXRUNTIME_BRANCH=main
ARG CMAKE_CUDA_ARCHITECTURES=37;50;52;60;61;70;75;80
ENV PATH /usr/local/nvidia/bin:/usr/local/cuda/bin:/code/cmake-3.21.0-linux-x86_64/bin:/opt/miniconda/bin:${PATH}

View file

@ -10,7 +10,7 @@ FROM nvidia/cuda:11.4.2-cudnn8-devel-ubuntu${OS_VERSION}
# ONNX Runtime Variables
ARG ONNXRUNTIME_REPO=https://github.com/Microsoft/onnxruntime
ARG ONNXRUNTIME_BRANCH=master
ARG ONNXRUNTIME_BRANCH=main
ARG CMAKE_CUDA_ARCHITECTURES=37;50;52;60;61;70;75;80
ENV PATH /usr/local/nvidia/bin:/usr/local/cuda/bin:/code/cmake-3.21.0-linux-x86_64/bin:/opt/miniconda/bin:${PATH}

View file

@ -9,7 +9,7 @@ FROM nvidia/cuda:11.6.1-cudnn8-devel-ubuntu20.04
# ONNX Runtime Variables
ARG ONNXRUNTIME_REPO=https://github.com/Microsoft/onnxruntime
ARG ONNXRUNTIME_BRANCH=master
ARG ONNXRUNTIME_BRANCH=main
ARG CMAKE_CUDA_ARCHITECTURES=37;50;52;60;61;70;75;80
ENV PATH /usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/src/tensorrt/bin:/code/cmake-3.21.0-linux-x86_64/bin:/opt/miniconda/bin:${PATH}

View file

@ -10,7 +10,7 @@ ARG BUILD_UID=1001
ARG BUILD_USER=onnxruntimedev
ARG OV_DEVICE_PRECISION="CPU_FP32"
ARG ENABLE_TRAINING=true
ARG ORT_BRANCH="master"
ARG ORT_BRANCH="main"
RUN adduser --uid $BUILD_UID $BUILD_USER
WORKDIR /home/$BUILD_USER
ENV PYTHON_EXE="/opt/python/$PYTHON_VER_PATH/bin/python$PYTHON_VERSION"

View file

@ -66,7 +66,7 @@ def write_to_db(binary_size_data, args):
client = QueuedIngestClient(kcsb)
fields = ["build_time", "build_id", "build_project", "commit_id", "os", "arch", "build_config", "size", "Branch"]
now_str = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
branch_name = os.environ.get("BUILD_SOURCEBRANCHNAME", "master")
branch_name = os.environ.get("BUILD_SOURCEBRANCHNAME", "main")
rows = []
for row in binary_size_data:
rows.append(