diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 77a683363fc4e7..f1bdc904207717 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,13 +15,13 @@ jobs: fail-fast: false matrix: platform: - - name: macos-11-release + - name: macos-12-release os_type: macos - os_name: macos-11 + os_name: macos-12 build_type: Release - - name: macos-11-debug + - name: macos-12-debug os_type: macos - os_name: macos-11 + os_name: macos-12 build_type: Debug - name: macos-latest-release os_type: macos @@ -102,7 +102,7 @@ jobs: fi - name: Setup Ninja - uses: seanmiddleditch/gha-setup-ninja@master + uses: seanmiddleditch/gha-setup-ninja@v4 - name: Install ccache shell: bash diff --git a/azure-pipelines.yml b/azure-pipelines.yml deleted file mode 100644 index bd22dc47f5e055..00000000000000 --- a/azure-pipelines.yml +++ /dev/null @@ -1,235 +0,0 @@ -name: $(Date:yyyyMMdd)$(Rev:.r) - -variables: - BUILD_LLVM: 'ON' - -stages: - - stage: BuildLLVM13 - jobs: - - job: BuildLLVM13Linux - timeoutInMinutes: "0" - displayName: Linux - continueOnError: "false" - pool: - vmImage: "ubuntu-18.04" - variables: - CCACHE_DIR: '$(Pipeline.Workspace)/ccache' - BUILD_DIRECTORY: '$(System.DefaultWorkingDirectory)/build' - SOURCE_DIRECTORY: '$(System.DefaultWorkingDirectory)' - INSTALL_DIRECTORY: '$(System.DefaultWorkingDirectory)/llvm-13-Ubuntu-gcc10-$(BUILD_DIRECTORY)' - strategy: - matrix: - 64-bit Linux Release: - BuildType: Release - 64-bit Linux Debug: - BuildType: Debug - steps: - - checkout: self - submodules: recursive - - script: | - echo "Build.DefinitionName $(Build.DefinitionName)" - echo "System.DefinitionId $(System.DefinitionId)" - echo "Agent.OS $(Agent.OS)" - echo "System.TeamProject $(System.TeamProject)" - echo "System.TeamProjectId $(System.TeamProjectId)" - echo "System.AccessToken $(System.AccessToken)" - echo "System.CollectionId $(System.CollectionId)" - echo "System.CollectionUri $(System.CollectionUri)" - echo "System.DefaultWorkingDirectory $(System.DefaultWorkingDirectory)" - echo "System.DefinitionId $(System.DefinitionId)" - echo "System.HostType $(System.HostType)" - echo "System.JobAttempt $(System.JobAttempt)" - echo "System.JobDisplayName $(System.JobDisplayName)" - echo "System.JobId $(System.JobId)" - echo "System.JobName $(System.JobName)" - echo "System.PhaseAttempt $(System.PhaseAttempt)" - echo "System.PhaseDisplayName $(System.PhaseDisplayName)" - echo "System.PhaseName $(System.PhaseName)" - echo "System.StageAttempt $(System.StageAttempt)" - echo "System.StageDisplayName $(System.StageDisplayName)" - echo "System.StageName $(System.StageName)" - echo "System.PullRequest.IsFork $(System.PullRequest.IsFork)" - echo "System.PullRequest.PullRequestId $(System.PullRequest.PullRequestId)" - echo "System.PullRequest.PullRequestNumber $(System.PullRequest.PullRequestNumber)" - echo "System.PullRequest.SourceBranch $(System.PullRequest.SourceBranch)" - echo "System.PullRequest.SourceRepositoryURI $(System.PullRequest.SourceRepositoryURI)" - echo "System.PullRequest.TargetBranch $(System.PullRequest.TargetBranch)" - echo "System.TeamFoundationCollectionUri $(System.TeamFoundationCollectionUri)" - echo "System.TeamProject $(System.TeamProject)" - echo "System.TeamProjectId $(System.TeamProjectId)" - echo "TF_BUILD $(TF_BUILD)" - displayName: Print Variables - - script: | - mkdir $(BUILD_DIRECTORY) - cd $(BUILD_DIRECTORY) - cmake -DCMAKE_INSTALL_PREFIX="$(INSTALL_DIRECTORY)" -DCMAKE_BUILD_TYPE=$(BuildType) ../llvm - displayName: ConfigureCommand - - script: | - cd $(BUILD_DIRECTORY) - cmake --build . --target install --config $(BuildType) -j 12 - displayName: BuildCommand - - task: CopyFiles@2 - inputs: - contents: '$(INSTALL_DIRECTORY)/$(BuildType)/**' - targetFolder: $(Build.ArtifactStagingDirectory) - - publish: $(Build.ArtifactStagingDirectory) - artifact: llvm-13.x-$(Agent.OS)-$(BuildType) - - - job: BuildLLVM13Windows - timeoutInMinutes: "0" - displayName: Windows - continueOnError: "false" - pool: - vmImage: "windows-2019" - variables: - CCACHE_DIR: '$(Pipeline.Workspace)/ccache' - SOURCE_DIRECTORY: '$(System.DefaultWorkingDirectory)' - BUILD_DIRECTORY: '$(SOURCE_DIRECTORY)\build' - INSTALL_DIRECTORY: '$(SOURCE_DIRECTORY)\llvm-13-win32-mscv2019-$(BUILD_DIRECTORY)' - strategy: - matrix: - 64-bit Windows Release: - BuildType: Release - 64-bit Windows RelWithDebInfo: - BuildType: RelWithDebInfo - 64-bit Windows Debug: - BuildType: Debug - steps: - - checkout: self - submodules: recursive - - - script: | - echo "Build.DefinitionName $(Build.DefinitionName)" - echo "System.DefinitionId $(System.DefinitionId)" - echo "Agent.OS $(Agent.OS)" - echo "System.TeamProject $(System.TeamProject)" - echo "System.TeamProjectId $(System.TeamProjectId)" - echo "System.AccessToken $(System.AccessToken)" - echo "System.CollectionId $(System.CollectionId)" - echo "System.CollectionUri $(System.CollectionUri)" - echo "System.DefaultWorkingDirectory $(System.DefaultWorkingDirectory)" - echo "System.DefinitionId $(System.DefinitionId)" - echo "System.HostType $(System.HostType)" - echo "System.JobAttempt $(System.JobAttempt)" - echo "System.JobDisplayName $(System.JobDisplayName)" - echo "System.JobId $(System.JobId)" - echo "System.JobName $(System.JobName)" - echo "System.PhaseAttempt $(System.PhaseAttempt)" - echo "System.PhaseDisplayName $(System.PhaseDisplayName)" - echo "System.PhaseName $(System.PhaseName)" - echo "System.StageAttempt $(System.StageAttempt)" - echo "System.StageDisplayName $(System.StageDisplayName)" - echo "System.StageName $(System.StageName)" - echo "System.PullRequest.IsFork $(System.PullRequest.IsFork)" - echo "System.PullRequest.PullRequestId $(System.PullRequest.PullRequestId)" - echo "System.PullRequest.PullRequestNumber $(System.PullRequest.PullRequestNumber)" - echo "System.PullRequest.SourceBranch $(System.PullRequest.SourceBranch)" - echo "System.PullRequest.SourceRepositoryURI $(System.PullRequest.SourceRepositoryURI)" - echo "System.PullRequest.TargetBranch $(System.PullRequest.TargetBranch)" - echo "System.TeamFoundationCollectionUri $(System.TeamFoundationCollectionUri)" - echo "System.TeamProject $(System.TeamProject)" - echo "System.TeamProjectId $(System.TeamProjectId)" - echo "TF_BUILD $(TF_BUILD)" - displayName: Print Variables - - powershell: | - mkdir $(BUILD_DIRECTORY) - cd $(BUILD_DIRECTORY) - cmake -DCMAKE_INSTALL_PREFIX="$(INSTALL_DIRECTORY)/$(BuildType)" -DCMAKE_BUILD_TYPE=$(BuildType) ../llvm - displayName: ConfigureCommand - - powershell: | - cd $(BUILD_DIRECTORY) - cmake --build . --target install --config $(BuildType) -j 12 - displayName: BuildCommand - - script: | - cd $(INSTALL_DIRECTORY)/$(BuildType) - mv bin/llvm-config.exe . - rm -r bin - mkdir bin - mv llvm-config.exe bin - tree /f - displayName: RemoveExtraExecutables - - task: CopyFiles@2 - inputs: - contents: '$(INSTALL_DIRECTORY)/$(BuildType)/**' - targetFolder: $(Build.ArtifactStagingDirectory) - - publish: $(Build.ArtifactStagingDirectory) - artifact: llvm-13.x-$(Agent.OS)-$(BuildType) - - - job: BuildLLVM13Mac - timeoutInMinutes: "0" - displayName: MacOS - continueOnError: "false" - pool: - vmImage: 'macOS-10.15' - variables: - CCACHE_DIR: '$(Pipeline.Workspace)/ccache' - BUILD_DIRECTORY: '$(System.DefaultWorkingDirectory)/build' - SOURCE_DIRECTORY: '$(System.DefaultWorkingDirectory)' - INSTALL_DIRECTORY: '$(System.DefaultWorkingDirectory)/llvm-13-macos10.15-$(BUILD_DIRECTORY)' - strategy: - matrix: - 64-bit Mac Release: - BuildType: Release - 64-bit Mac Debug: - BuildType: Debug - steps: - - checkout: self - submodules: recursive - - script: | - echo "Build.DefinitionName $(Build.DefinitionName)" - echo "System.DefinitionId $(System.DefinitionId)" - echo "Agent.OS $(Agent.OS)" - echo "System.TeamProject $(System.TeamProject)" - echo "System.TeamProjectId $(System.TeamProjectId)" - echo "System.AccessToken $(System.AccessToken)" - echo "System.CollectionId $(System.CollectionId)" - echo "System.CollectionUri $(System.CollectionUri)" - echo "System.DefaultWorkingDirectory $(System.DefaultWorkingDirectory)" - echo "System.DefinitionId $(System.DefinitionId)" - echo "System.HostType $(System.HostType)" - echo "System.JobAttempt $(System.JobAttempt)" - echo "System.JobDisplayName $(System.JobDisplayName)" - echo "System.JobId $(System.JobId)" - echo "System.JobName $(System.JobName)" - echo "System.PhaseAttempt $(System.PhaseAttempt)" - echo "System.PhaseDisplayName $(System.PhaseDisplayName)" - echo "System.PhaseName $(System.PhaseName)" - echo "System.StageAttempt $(System.StageAttempt)" - echo "System.StageDisplayName $(System.StageDisplayName)" - echo "System.StageName $(System.StageName)" - echo "System.PullRequest.IsFork $(System.PullRequest.IsFork)" - echo "System.PullRequest.PullRequestId $(System.PullRequest.PullRequestId)" - echo "System.PullRequest.PullRequestNumber $(System.PullRequest.PullRequestNumber)" - echo "System.PullRequest.SourceBranch $(System.PullRequest.SourceBranch)" - echo "System.PullRequest.SourceRepositoryURI $(System.PullRequest.SourceRepositoryURI)" - echo "System.PullRequest.TargetBranch $(System.PullRequest.TargetBranch)" - echo "System.TeamFoundationCollectionUri $(System.TeamFoundationCollectionUri)" - echo "System.TeamProject $(System.TeamProject)" - echo "System.TeamProjectId $(System.TeamProjectId)" - echo "TF_BUILD $(TF_BUILD)" - displayName: Print Variables - - script: | - mkdir $(BUILD_DIRECTORY) - cd $(BUILD_DIRECTORY) - cmake -DCMAKE_INSTALL_PREFIX="$(INSTALL_DIRECTORY)" -DCMAKE_BUILD_TYPE=$(BuildType) -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" ../llvm - displayName: ConfigureCommand - - script: | - cd $(BUILD_DIRECTORY) - cmake --build . --target install --config $(BuildType) -j 12 - displayName: BuildCommand - - script: | - cd $(INSTALL_DIRECTORY)/$(BuildType) - mv bin/llvm-config* . - rm -r bin - mkdir bin - mv llvm-config* bin - tree /f - displayName: RemoveExtraExecutables - - task: CopyFiles@2 - inputs: - contents: '$(INSTALL_DIRECTORY)/$(BuildType)/**' - targetFolder: $(Build.ArtifactStagingDirectory) - - task: PublishBuildArtifacts@1 - inputs: - pathToPublish: $(Build.ArtifactStagingDirectory) - artifactName: llvm-13.x-$(Agent.OS)-$(BuildType)