mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[build] Remove Azure Pipelines CI
This commit is contained in:
committed by
Peter Johnson
parent
cab8b18c68
commit
370e9d089f
@@ -1,7 +1,6 @@
|
||||
# WPILib Project
|
||||
|
||||

|
||||
[](https://dev.azure.com/wpilib/wpilib/_build/latest?definitionId=1)
|
||||
|
||||
Welcome to the WPILib project. This repository contains the HAL, WPILibJ, and WPILibC projects. These are the core libraries for creating robot programs for the roboRIO.
|
||||
|
||||
|
||||
@@ -1,77 +0,0 @@
|
||||
# Build and testing pipeline on Azure.
|
||||
|
||||
resources:
|
||||
containers:
|
||||
- container: wpilib2020
|
||||
image: wpilib/roborio-cross-ubuntu:2020-18.04
|
||||
- container: raspbian
|
||||
image: wpilib/raspbian-cross-ubuntu:10-18.04
|
||||
- container: aarch64
|
||||
image: wpilib/aarch64-cross-ubuntu:bionic-18.04
|
||||
- container: ubuntu
|
||||
image: wpilib/ubuntu-base:18.04
|
||||
|
||||
variables:
|
||||
- group: Artifactory-Package-Publish
|
||||
|
||||
trigger:
|
||||
batch: true
|
||||
branches:
|
||||
include:
|
||||
- master
|
||||
|
||||
stages:
|
||||
- stage: Build
|
||||
jobs:
|
||||
- template: azure-templates/job-build-vcpkg.yml
|
||||
|
||||
- template: azure-templates/job-build.yml
|
||||
parameters:
|
||||
jobName: Linux_Arm
|
||||
buildOptions: '-Ponlylinuxathena'
|
||||
artifactName: 'Athena'
|
||||
|
||||
- template: azure-templates/job-build.yml
|
||||
parameters:
|
||||
jobName: Linux_Raspbian
|
||||
container: raspbian
|
||||
buildOptions: '-Ponlylinuxraspbian'
|
||||
artifactName: 'Raspbian'
|
||||
|
||||
- template: azure-templates/job-build.yml
|
||||
parameters:
|
||||
jobName: Linux_Aarch64
|
||||
container: aarch64
|
||||
buildOptions: '-Ponlylinuxaarch64bionic'
|
||||
artifactName: 'Aarch64'
|
||||
|
||||
- template: azure-templates/job-build.yml
|
||||
parameters:
|
||||
jobName: Linux
|
||||
container: ubuntu
|
||||
artifactName: 'Linux'
|
||||
|
||||
- template: azure-templates/job-build.yml
|
||||
parameters:
|
||||
jobName: Windows_64_Bit
|
||||
pool:
|
||||
vmImage: 'windows-2019'
|
||||
container: ''
|
||||
jdkVersionOption: '1.11'
|
||||
buildOptions: '-PskipPMD'
|
||||
artifactName: 'Win64'
|
||||
|
||||
- template: azure-templates/job-build-win32.yml
|
||||
|
||||
- template: azure-templates/job-build-mac.yml
|
||||
|
||||
- template: azure-templates/job-build-cmake.yml
|
||||
|
||||
- template: azure-templates/job-styleguide.yml
|
||||
|
||||
- template: azure-templates/stage-combine.yml
|
||||
parameters:
|
||||
publish: True
|
||||
publishUserName: $(PublishUserName)
|
||||
publishPassword: $(PublishPassword)
|
||||
artifacts: [Mac, Win32, Win64, Linux, Raspbian, Athena, Aarch64]
|
||||
@@ -1,62 +0,0 @@
|
||||
#!/bin/bash
|
||||
################################################################################
|
||||
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
||||
# See https://llvm.org/LICENSE.txt for license information.
|
||||
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
||||
################################################################################
|
||||
#
|
||||
# This script will install the llvm toolchain on the different
|
||||
# Debian and Ubuntu versions
|
||||
|
||||
set -eux
|
||||
|
||||
# read optional command line argument
|
||||
LLVM_VERSION=10
|
||||
if [ "$#" -eq 1 ]; then
|
||||
LLVM_VERSION=$1
|
||||
fi
|
||||
|
||||
DISTRO=$(lsb_release -is)
|
||||
VERSION=$(lsb_release -sr)
|
||||
DIST_VERSION="${DISTRO}_${VERSION}"
|
||||
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
echo "This script must be run as root!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
declare -A LLVM_VERSION_PATTERNS
|
||||
LLVM_VERSION_PATTERNS[9]="-9"
|
||||
LLVM_VERSION_PATTERNS[10]="-10"
|
||||
LLVM_VERSION_PATTERNS[11]=""
|
||||
|
||||
if [ ! ${LLVM_VERSION_PATTERNS[$LLVM_VERSION]+_} ]; then
|
||||
echo "This script does not support LLVM version $LLVM_VERSION"
|
||||
exit 3
|
||||
fi
|
||||
|
||||
LLVM_VERSION_STRING=${LLVM_VERSION_PATTERNS[$LLVM_VERSION]}
|
||||
|
||||
# find the right repository name for the distro and version
|
||||
case "$DIST_VERSION" in
|
||||
Debian_9* ) REPO_NAME="deb http://apt.llvm.org/stretch/ llvm-toolchain-stretch$LLVM_VERSION_STRING main" ;;
|
||||
Debian_10* ) REPO_NAME="deb http://apt.llvm.org/buster/ llvm-toolchain-buster$LLVM_VERSION_STRING main" ;;
|
||||
Debian_unstable ) REPO_NAME="deb http://apt.llvm.org/unstable/ llvm-toolchain$LLVM_VERSION_STRING main" ;;
|
||||
Debian_testing ) REPO_NAME="deb http://apt.llvm.org/unstable/ llvm-toolchain$LLVM_VERSION_STRING main" ;;
|
||||
Ubuntu_16.04 ) REPO_NAME="deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial$LLVM_VERSION_STRING main" ;;
|
||||
Ubuntu_18.04 ) REPO_NAME="deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic$LLVM_VERSION_STRING main" ;;
|
||||
Ubuntu_18.10 ) REPO_NAME="deb http://apt.llvm.org/cosmic/ llvm-toolchain-cosmic$LLVM_VERSION_STRING main" ;;
|
||||
Ubuntu_19.04 ) REPO_NAME="deb http://apt.llvm.org/disco/ llvm-toolchain-disco$LLVM_VERSION_STRING main" ;;
|
||||
Ubuntu_19.10 ) REPO_NAME="deb http://apt.llvm.org/eoan/ llvm-toolchain-eoan$LLVM_VERSION_STRING main" ;;
|
||||
Ubuntu_20.04 ) REPO_NAME="deb http://apt.llvm.org/focal/ llvm-toolchain-focal$LLVM_VERSION_STRING main" ;;
|
||||
* )
|
||||
echo "Distribution '$DISTRO' in version '$VERSION' is not supported by this script (${DIST_VERSION})."
|
||||
exit 2
|
||||
esac
|
||||
|
||||
|
||||
# install everything
|
||||
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add -
|
||||
add-apt-repository "${REPO_NAME}"
|
||||
apt-get update
|
||||
apt-get install -y clang-format-$LLVM_VERSION
|
||||
@@ -1,31 +0,0 @@
|
||||
# Job for building
|
||||
|
||||
parameters:
|
||||
pool:
|
||||
vmImage: 'Ubuntu 16.04'
|
||||
container: wpilib2020
|
||||
preBuild: []
|
||||
|
||||
jobs:
|
||||
- job: CMake
|
||||
pool: ${{ parameters.pool }}
|
||||
|
||||
${{ if ne(parameters.container, '') }}:
|
||||
container: ${{ parameters.container }}
|
||||
|
||||
workspace:
|
||||
clean: all
|
||||
|
||||
timeoutInMinutes: 0
|
||||
|
||||
steps:
|
||||
- ${{ parameters.preBuild }}
|
||||
|
||||
- task: CMake@1
|
||||
inputs:
|
||||
cmakeArgs: '-DWITHOUT_ALLWPILIB=OFF ..'
|
||||
|
||||
- script: |
|
||||
make -j3
|
||||
workingDirectory: 'build'
|
||||
displayName: 'Build'
|
||||
@@ -1,21 +0,0 @@
|
||||
# Job for mac
|
||||
|
||||
parameters:
|
||||
pool:
|
||||
vmImage: 'macOS-10.14'
|
||||
preBuild: []
|
||||
|
||||
jobs:
|
||||
- template: job-build.yml
|
||||
parameters:
|
||||
jobName: 'Mac'
|
||||
pool: ${{ parameters.pool }}
|
||||
container: ''
|
||||
jdkVersionOption: '1.11'
|
||||
artifactName: 'Mac'
|
||||
preBuild:
|
||||
- ${{ parameters.preBuild }}
|
||||
- script: |
|
||||
mkdir build
|
||||
export JAVA_HOME=`/usr/libexec/java_home -v 11`
|
||||
displayName: 'Setup JDK'
|
||||
@@ -1,26 +0,0 @@
|
||||
jobs:
|
||||
- job: Windows_CMake
|
||||
pool:
|
||||
vmImage: 'windows-2019'
|
||||
|
||||
variables:
|
||||
vcpkgGitRef: 544f8e4593764f78faa94bac2adb81cca5232943
|
||||
|
||||
steps:
|
||||
- task: Cache@2
|
||||
displayName: Cache vcpkg
|
||||
inputs:
|
||||
key: $(Build.SourcesDirectory)/azure-templates/vcpkg_x64-windows.txt | "$(vcpkgGitCommitId)" | "$(Agent.OS)"
|
||||
path: '$(Build.BinariesDirectory)/vcpkg'
|
||||
- task: run-vcpkg@0
|
||||
displayName: Run vcpkg
|
||||
inputs:
|
||||
vcpkgArguments: '@$(Build.SourcesDirectory)/azure-templates/vcpkg_x64-windows.txt'
|
||||
vcpkgGitCommitId: $(vcpkgGitRef)
|
||||
- task: run-cmake@0
|
||||
displayName: Build With CMake
|
||||
inputs:
|
||||
cmakeListsOrSettingsJson: 'CMakeListsTxtAdvanced'
|
||||
vcpkgTriplet: '$(RUNVCPKG_VCPKG_TRIPLET)'
|
||||
useVcpkgToolchainFile: true
|
||||
cmakeAppendedArgs: '-DWITHOUT_JAVA=ON -DWITHOUT_ALLWPILIB=OFF -DWITHOUT_CSCORE=OFF'
|
||||
@@ -1,30 +0,0 @@
|
||||
# Job for win 32.
|
||||
|
||||
parameters:
|
||||
pool:
|
||||
vmImage: 'windows-2019'
|
||||
preBuild: []
|
||||
|
||||
jobs:
|
||||
- template: job-build.yml
|
||||
parameters:
|
||||
jobName: 'Windows_32_Bit'
|
||||
pool: ${{ parameters.pool }}
|
||||
container: ''
|
||||
gradleOptions: '-Xmx1024m'
|
||||
buildOptions: '-PskipPMD'
|
||||
artifactName: 'Win32'
|
||||
preBuild:
|
||||
- ${{ parameters.preBuild }}
|
||||
- powershell: |
|
||||
mkdir build
|
||||
$ProgressPreference = 'SilentlyContinue'
|
||||
wget "https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.4%2B11/OpenJDK11U-jdk_x86-32_windows_hotspot_11.0.4_11.zip" -O "build\jdk.zip"
|
||||
displayName: 'Download JDK'
|
||||
- task: JavaToolInstaller@0
|
||||
inputs:
|
||||
versionSpec: '11'
|
||||
jdkSourceOption: localDirectory
|
||||
jdkFile: 'build/jdk.zip'
|
||||
jdkDestinationDirectory: 'build/jdkinst'
|
||||
jdkArchitectureOption: x86
|
||||
@@ -1,60 +0,0 @@
|
||||
# Job for building
|
||||
|
||||
parameters:
|
||||
jobName: ''
|
||||
pool:
|
||||
vmImage: 'Ubuntu 16.04'
|
||||
container: wpilib2020
|
||||
preBuild: []
|
||||
gradleOptions: ''
|
||||
jdkVersionOption: ''
|
||||
buildOptions: ''
|
||||
artifactName: ''
|
||||
|
||||
jobs:
|
||||
- job: ${{ parameters.jobName }}
|
||||
pool: ${{ parameters.pool }}
|
||||
|
||||
${{ if ne(parameters.container, '') }}:
|
||||
container: ${{ parameters.container }}
|
||||
|
||||
workspace:
|
||||
clean: all
|
||||
|
||||
timeoutInMinutes: 0
|
||||
|
||||
steps:
|
||||
- ${{ parameters.preBuild }}
|
||||
|
||||
# PR Builds
|
||||
- ${{ if not(startsWith(variables['Build.SourceBranch'], 'refs/tags/v')) }}:
|
||||
- task: Gradle@2
|
||||
inputs:
|
||||
workingDirectory: ''
|
||||
gradleWrapperFile: 'gradlew'
|
||||
gradleOptions: '-Xmx3072m ${{ parameters.gradleOptions }}'
|
||||
${{ if ne(parameters.jdkVersionOption, '') }}:
|
||||
jdkVersionOption: ${{ parameters.jdkVersionOption }}
|
||||
publishJUnitResults: true
|
||||
testResultsFiles: '**/TEST-*.xml'
|
||||
tasks: 'build'
|
||||
options: '-PbuildServer ${{ parameters.buildOptions }}'
|
||||
|
||||
# Tagged Builds
|
||||
- ${{ if startsWith(variables['Build.SourceBranch'], 'refs/tags/v') }}:
|
||||
- task: Gradle@2
|
||||
inputs:
|
||||
workingDirectory: ''
|
||||
gradleWrapperFile: 'gradlew'
|
||||
gradleOptions: '-Xmx3072m ${{ parameters.gradleOptions }}'
|
||||
${{ if ne(parameters.jdkVersionOption, '') }}:
|
||||
jdkVersionOption: ${{ parameters.jdkVersionOption }}
|
||||
publishJUnitResults: true
|
||||
testResultsFiles: '**/TEST-*.xml'
|
||||
tasks: 'build'
|
||||
options: '-PreleaseMode -PbuildServer ${{ parameters.buildOptions }}'
|
||||
|
||||
- task: PublishPipelineArtifact@0
|
||||
inputs:
|
||||
artifactName: ${{ parameters.artifactName }}
|
||||
targetPath: 'build/allOutputs'
|
||||
@@ -1,36 +0,0 @@
|
||||
# Job for checking wpiformat violations
|
||||
|
||||
parameters:
|
||||
jobName: ''
|
||||
pool:
|
||||
vmImage: 'Ubuntu 18.04'
|
||||
|
||||
jobs:
|
||||
- job: Styleguide
|
||||
pool: ${{ parameters.pool }}
|
||||
|
||||
container: ubuntu
|
||||
|
||||
workspace:
|
||||
clean: all
|
||||
|
||||
timeoutInMinutes: 0
|
||||
|
||||
steps:
|
||||
- script: |
|
||||
sudo apt-get update -q
|
||||
sudo apt-get install gnupg lsb-release software-properties-common -y
|
||||
chmod +x azure-templates/clang-format.sh
|
||||
sudo ./azure-templates/clang-format.sh 10
|
||||
sudo pip3 install wpiformat
|
||||
displayName: 'Install wpiformat'
|
||||
|
||||
- script: |
|
||||
git checkout -b master
|
||||
wpiformat -clang 10
|
||||
displayName: 'Run wpiformat'
|
||||
|
||||
- script: |
|
||||
# Ensure formatter made no changes
|
||||
git --no-pager diff --exit-code HEAD
|
||||
displayName: 'Check wpiformat Output'
|
||||
@@ -1,76 +0,0 @@
|
||||
# Stage to combine artifacts into a single output
|
||||
|
||||
parameters:
|
||||
publish: False
|
||||
publishUserName: ''
|
||||
publishPassword: ''
|
||||
artifacts: []
|
||||
|
||||
stages:
|
||||
- stage: Combine
|
||||
jobs:
|
||||
- job: CombineJob
|
||||
pool:
|
||||
vmImage: 'macOS-10.14'
|
||||
|
||||
timeoutInMinutes: 0
|
||||
|
||||
steps:
|
||||
- checkout: none
|
||||
|
||||
- script: |
|
||||
git clone https://github.com/wpilibsuite/build-tools
|
||||
displayName: 'Clone Combiner'
|
||||
|
||||
- ${{ each artifact in parameters.artifacts }}:
|
||||
- task: DownloadPipelineArtifact@0
|
||||
displayName: 'DownloadPipelineArtifact ${{ artifact }}'
|
||||
inputs:
|
||||
artifactName: ${{ artifact }}
|
||||
targetPath: 'build-tools/combiner/products/build/allOutputs'
|
||||
|
||||
# PR Builds
|
||||
- ${{ if and(ne(variables['Build.SourceBranch'], 'refs/heads/master'), not(startsWith(variables['Build.SourceBranch'], 'refs/tags/v'))) }}:
|
||||
- task: Gradle@2
|
||||
inputs:
|
||||
workingDirectory: 'build-tools/combiner'
|
||||
gradleWrapperFile: 'build-tools/combiner/gradlew'
|
||||
gradleOptions: '-Xmx3072m'
|
||||
tasks: 'publish '
|
||||
options: '-Pallwpilib'
|
||||
|
||||
# Master Builds
|
||||
- ${{ if and(parameters.publish, eq(variables['Build.SourceBranch'], 'refs/heads/master')) }}:
|
||||
- task: Gradle@2
|
||||
inputs:
|
||||
workingDirectory: 'build-tools/combiner'
|
||||
gradleWrapperFile: 'build-tools/combiner/gradlew'
|
||||
gradleOptions: '-Xmx3072m'
|
||||
tasks: 'publish '
|
||||
options: '-Pallwpilib'
|
||||
env:
|
||||
RUN_AZURE_ARTIFACTORY_RELEASE: 'TRUE'
|
||||
ARTIFACTORY_PUBLISH_USERNAME: $(publishUserName)
|
||||
ARTIFACTORY_PUBLISH_PASSWORD: $(publishPassword)
|
||||
|
||||
# Tagged Builds
|
||||
- ${{ if and(parameters.publish, startsWith(variables['Build.SourceBranch'], 'refs/tags/v')) }}:
|
||||
- task: Gradle@2
|
||||
inputs:
|
||||
workingDirectory: 'build-tools/combiner'
|
||||
gradleWrapperFile: 'build-tools/combiner/gradlew'
|
||||
gradleOptions: '-Xmx3072m'
|
||||
tasks: 'publish '
|
||||
options: '-Pallwpilib -PreleaseRepoPublish'
|
||||
env:
|
||||
RUN_AZURE_ARTIFACTORY_RELEASE: 'TRUE'
|
||||
ARTIFACTORY_PUBLISH_USERNAME: $(publishUserName)
|
||||
ARTIFACTORY_PUBLISH_PASSWORD: $(publishPassword)
|
||||
|
||||
- script: |
|
||||
echo "##vso[task.setvariable variable=UserHome]$HOME"
|
||||
displayName: 'Set Home Variable'
|
||||
- task: PublishPipelineArtifact@0
|
||||
inputs:
|
||||
artifactName: 'Maven'
|
||||
targetPath: $(UserHome)/releases
|
||||
@@ -1,3 +0,0 @@
|
||||
--triplet
|
||||
x64-windows
|
||||
opencv
|
||||
Reference in New Issue
Block a user