File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed
Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ # This workflow will run build an AS project and publish the libraries to the github package registry
2+
3+ trigger :
4+ branches :
5+ include :
6+ - main
7+ tags :
8+ include :
9+ - v*
10+
11+ jobs :
12+ - job : build_publish_libraries
13+ pool :
14+ name : ' AutomationStudioPool' # Specify your custom agent pool name here
15+ steps :
16+ - task : Checkout@v2
17+ inputs :
18+ submodules : true
19+ path : " main"
20+ lfs : true
21+ - script : |
22+ cd ./main
23+ git lfs pull
24+ displayName: 'Fix LFS'
25+ - script : python.exe C:/Tools/AsPython/InstallUpgrades.py $(Build.SourcesDirectory)/main/upgrades -asp AS411 -r --logLevel DEBUG
26+ displayName : ' Install AS upgrades'
27+ - script : python.exe C:/Tools/AsPython/CmdLineBuild.py $(Build.SourcesDirectory)/main/example/AsProject/AsProject.apj -c Intel ARM -bm Rebuild -sim --logLevel DEBUG
28+ displayName : ' Build project'
29+ - script : python.exe C:/Tools/AsPython/CmdLineExportLib.py $(Build.SourcesDirectory)/main/example/AsProject/AsProject.apj -dest ./libs -c Intel ARM -wl vartools -l DEBUG -o -bm "None"
30+ displayName : ' Export libraries'
31+ - script : |
32+ cd ./libs/vartools
33+ python.exe C:/Tools/LPM/src/LPM.py login -s -t $(GITHUB_TOKEN) -nc
34+ python.exe C:/Tools/LPM/src/LPM.py init -s -lib -nc
35+ python.exe C:/Tools/LPM/src/LPM.py publish -s -nc
36+ displayName: 'Publish libraries'
37+ env:
38+ GITHUB_TOKEN: $(GITHUB_TOKEN)
You can’t perform that action at this time.
0 commit comments