Skip to content

Commit

Permalink
Update Azure pipelines to build TI_CC3220SF_LAUNCHXL
Browse files Browse the repository at this point in the history
Signed-off-by: José Simões <[email protected]>
  • Loading branch information
josesimoes committed May 4, 2019
1 parent efd85e3 commit 97bd624
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 1 deletion.
19 changes: 19 additions & 0 deletions azure-pipelines-templates/build-ti-simplelink.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright (c) 2019 The nanoFramework project contributors
# See LICENSE file in the project root for full license information.

parameters:
buildDirectory: '$(Build.SourcesDirectory)\build'

steps:

- task: CMake@1
inputs:
cmakeArgs: '-G Ninja -DTOOLCHAIN_PREFIX=$(GNU_GCC_TOOLCHAIN_PATH) -DCMAKE_BUILD_TYPE=MinSizeRel -DBUILD_VERSION=$(NBGV_Version) -DTI_BOARD=$(BoardName) $(BuildOptions) ..'
workingDirectory: ${{ parameters.buildDirectory }}
displayName: Setup build with CMake

- task: CMake@1
inputs:
cmakeArgs: '--build ${{ parameters.buildDirectory }} --target all --config MinSizeRel'
workingDirectory: ${{ parameters.buildDirectory }}
displayName: Build with CMake
42 changes: 41 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,45 @@ jobs:

- template: azure-pipelines-templates/publish-bintray.yml

#################
# TI SimpleLink
- job: Build_TI_SimpleLink_targets
# skip build if this is a PR, submitted by nfbot and the commit message contains [version update]
# not( and( eq(variables['Build.Reason'], 'PullRequest'), eq(variables['Build.RequestedForId'], 'nfbot'), contains(variables['Build.SourceVersionMessage'], '[version update]') ) )
condition: not( and( startsWith(variables['Build.SourceBranch'], 'refs/pull'), eq( dependencies.Check_Build_Options.outputs['BuildOptions.SKIP_BUILD'], true ) ))

dependsOn:
- Check_Build_Options

pool:
vmImage: 'VS2017-Win2016'

strategy:
matrix:
ST_STM32F429I_DISCOVERY:
BoardName: TI_CC3220SF_LAUNCHXL
BuildOptions: -DTARGET_SERIES=CC32xx -DRTOS=TI_SIMPLELIN -DSUPPORT_ANY_BASE_CONVERSION=OFF -DNF_FEATURE_DEBUGGER=ON -DNF_FEATURE_RTC=ON -DNF_FEATURE_WATCHDOG=OFF -DNF_FEATURE_HAS_CONFIG_BLOCK=ON -DAPI_Windows.Devices.Gpio=ON -DAPI_Windows.Devices.Spi=ON -DAPI_Windows.Devices.I2c=ON -DAPI_Windows.Devices.Pwm=ON -DAPI_Windows.Devices.SerialCommunication=OFF -DAPI_Windows.Devices.Adc=ON -DAPI_System.Net=ON
GccArm_Version:

variables:
GNU_GCC_TOOLCHAIN_PATH: $(Agent.TempDirectory)\GNU_Tools_ARM_Embedded
HelperPackageVersion: $[counter('HelperPackageVersioncounter', 0)]

steps:
- template: azure-pipelines-templates/nb-gitversioning.yml

- template: azure-pipelines-templates/download-install-arm-gcc-toolchain.yml

- template: azure-pipelines-templates/download-install-ninja.yml

- template: azure-pipelines-templates/build-ti-simplelink.yml

- template: azure-pipelines-templates/pack-publish-artifacts.yml

- template: azure-pipelines-templates/publish-bintray.yml

- template: azure-pipelines-templates/pack-publish-managed-helpers.yml

#################
# WIN32
- job: Build_WIN32_nanoCLR
Expand Down Expand Up @@ -244,7 +283,8 @@ jobs:
dependsOn:
- Build_STM32_targets
- Build_ESP32_targets
condition: or( failed('Build_STM32_targets'), failed('Build_ESP32_targets'), failed('Build_WIN32_nanoCLR'))
- Build_TI_SimpleLink_targets
condition: or( failed('Build_STM32_targets'), failed('Build_ESP32_targets'), failed('Build_TI_SimpleLink_targets'), failed('Build_WIN32_nanoCLR'))

pool:
vmImage: 'VS2017-Win2016'
Expand Down

0 comments on commit 97bd624

Please sign in to comment.