Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
Fix/cleanup pipeline (#261)
Browse files Browse the repository at this point in the history
* Fix issue with Linux pipeline path
* Remove nrftc from artifact
  • Loading branch information
kenr authored Feb 17, 2021
1 parent 174a3f5 commit c113ebc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .azure-pipelines/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ jobs:
echo Deleting unnecessary directories from artifact directory
rmdir /s /q $(Build.ArtifactStagingDirectory)\_CPack_Packages
del $(System.ArtifactsDirectory)\nrftc
condition: contains(variables['imageName'], 'win')
displayName: '[Windows] Run cmake and build project'
Expand Down Expand Up @@ -241,14 +242,15 @@ jobs:
export CC=$(cc_compiler_path)
export CXX=$(cxx_compiler_path)
source $(Agent.BuildDirectory)/tcenv.sh
export PATH=$PATH:$BUILD_SOURCESDIRECTORY/pc-ble-driver/.azure-pipelines/tools/linux
export PATH=$PATH:$BUILD_SOURCESDIRECTORY/.azure-pipelines/tools/linux
/usr/bin/python3 -m site &> /dev/null && PATH="$PATH:`/usr/bin/python3 -m site --user-base`/bin"
export TMP=$(Agent.TempDirectory)
cmake -H. -B_build -GNinja -DCMAKE_BUILD_TYPE=${{ parameters.BUILD_CONFIGURATION }} -DBUILD_SHARED_LIBS=ON -DCOMPILE_CONNECTIVITY=1 -DCONNECTIVITY_VERSION=$(NRF_BLE_CONNECTIVITY_VERSION) -DNRF_BLE_DRIVER_VERSION=$(NRF_BLE_DRIVER_VERSION) -DCPACK_PACKAGE_DIRECTORY=$(Build.ArtifactStagingDirectory)
cmake --build _build --config ${{ parameters.BUILD_CONFIGURATION }} --target compile_connectivity
cmake --build _build --config ${{ parameters.BUILD_CONFIGURATION }} --target package
rm -rf $(Build.ArtifactStagingDirectory)/_*
rm $(System.ArtifactsDirectory)/nrftc
condition: contains(variables['imageName'], 'ubuntu')
displayName: '[Linux] Build project'
Expand Down Expand Up @@ -292,6 +294,7 @@ jobs:
cmake --build _build --config ${{ parameters.BUILD_CONFIGURATION }} --target compile_connectivity
cmake --build _build --config ${{ parameters.BUILD_CONFIGURATION }} --target package
rm -rf $(Build.ArtifactStagingDirectory)/_*
rm $(System.ArtifactsDirectory)/nrftc
condition: contains(variables['imageName'], 'mac')
displayName: '[macOS] Build project'
Expand Down

0 comments on commit c113ebc

Please sign in to comment.