File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 23
23
with :
24
24
sdk : ${{ matrix.sdk }}
25
25
26
+ - name : Print DART_HOME
27
+ shell : bash
28
+ run : echo "Dart SDK installed in $DART_HOME"
29
+
26
30
- name : Run hello world
27
31
run : |
28
32
echo "main() { print('hello world'); }" > hello.dart
Original file line number Diff line number Diff line change @@ -88,14 +88,16 @@ rm "${HOME}/dartsdk.zip"
88
88
if [[ $OS == windows ]]
89
89
then
90
90
PUBCACHE=" ${USERPROFILE} \\ .pub-cache"
91
+ DART_HOME=" ${RUNNER_TOOL_CACHE} \\ dart-sdk"
91
92
else
92
93
PUBCACHE=" ${HOME} /.pub-cache"
94
+ DART_HOME=" ${RUNNER_TOOL_CACHE} /dart-sdk"
93
95
fi
94
96
echo " PUB_CACHE=${PUBCACHE} " >> $GITHUB_ENV
95
97
echo " Pub cache set to: ${PUBCACHE} "
96
98
97
99
# Update paths.
98
- echo " DART_HOME=${RUNNER_TOOL_CACHE} /dart-sdk/ " >> $GITHUB_ENV
100
+ echo " DART_HOME=${DART_HOME} " >> $GITHUB_ENV
99
101
echo " ${PUBCACHE} /bin" >> $GITHUB_PATH
100
102
echo " ${RUNNER_TOOL_CACHE} /dart-sdk/bin" >> $GITHUB_PATH
101
103
You can’t perform that action at this time.
0 commit comments