File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 1
1
name : example
2
2
publish_to : none
3
3
environment :
4
- sdk : ' >=2.12.0 <3.0.0'
4
+ sdk : " >=2.12.0 <3.0.0"
5
+
6
+ dependencies :
7
+ characters :
8
+ git : https://github.com/dart-lang/characters
9
+
5
10
dev_dependencies :
6
11
test : any
Original file line number Diff line number Diff line change 85
85
rm " ${HOME} /dartsdk.zip"
86
86
87
87
# Configure pub to use a fixed location.
88
- echo " PUB_CACHE=${HOME} /.pub-cache" >> $GITHUB_ENV
88
+ if [[ $OS == windows ]]
89
+ then
90
+ PUBCACHE=" ${USERPROFILE} \\ .pub-cache"
91
+ else
92
+ PUBCACHE=" ${HOME} /.pub-cache"
93
+ fi
94
+ echo " PUB_CACHE=${PUBCACHE} " >> $GITHUB_ENV
95
+ echo " Pub cache set to: ${PUBCACHE} "
89
96
90
97
# Update paths.
91
- echo " ${HOME} /.pub-cache /bin" >> $GITHUB_PATH
98
+ echo " ${PUBCACHE} /bin" >> $GITHUB_PATH
92
99
echo " ${RUNNER_TOOL_CACHE} /dart-sdk/bin" >> $GITHUB_PATH
93
100
94
101
# Report success, and print version.
You can’t perform that action at this time.
0 commit comments