File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ vmImage : ' ubuntu-latest'
2+
3+ variables :
4+ - CHOOSENIM_NO_ANALYTICS : 1
5+ - CHOOSENIM_CHOOSE_VERSION : ' #16c39f9b2edc963655889cfd33e165bfae91c96d'
6+ # bump everytime choosenim has to be updated
7+ - CHOOSENIM_REVISION : 1
8+
9+ steps :
10+ - task : Cache@2
11+ inputs :
12+ key : ' toolchain' | $(CHOOSENIM_CHOOSE_VERSION) | $(CHOOSENIM_REVISION) | $(Agent.OS)
13+ path : $(HOME)/.choosenim
14+ cacheHitVar : CHOOSENIM_CACHED
15+ displayName : ' Restore choosenim toolchains'
16+
17+ - task : Cache@2
18+ inputs :
19+ key : ' choosenim' | $(CHOOSENIM_CHOOSE_VERSION) | $(CHOOSENIM_REVISION) | $(Agent.OS)
20+ path : $(HOME)/.nimble/bin
21+ cacheHitVar : CHOOSENIM_CACHED
22+ displayName : ' Restore choosenim'
23+
24+ - bash : echo '##vso[task.prependpath]$HOME/.nimble/bin'
25+ displayName : ' Setup environment'
26+
27+ - bash : |
28+ curl https://nim-lang.org/choosenim/init.sh -sSfo init.sh
29+ sh init.sh -y
30+ displayName: 'Install Nim with choosenim'
31+ condition: eq('CHOOSENIM_CACHED', false)
32+
33+ - bash : testament cat nimble-packages
34+ displayName : ' Test important packages'
35+ env :
36+ SYSTEM_ACCESSTOKEN : $(System.AccessToken)
You can’t perform that action at this time.
0 commit comments