mirror of
https://github.com/subosito/flutter-action.git
synced 2024-08-16 10:19:50 +02:00
add PUBCACHE
This commit is contained in:
parent
23835ee500
commit
a7e6ec0df9
2 changed files with 8 additions and 0 deletions
3
.github/workflows/workflow.yml
vendored
3
.github/workflows/workflow.yml
vendored
|
@ -17,6 +17,9 @@ jobs:
|
|||
- name: Print FLUTTER_ROOT
|
||||
shell: bash
|
||||
run: echo "FLUTTER_ROOT set to $FLUTTER_ROOT"
|
||||
- name: Print PUBCACHE
|
||||
shell: bash
|
||||
run: echo "PUBCACHE set to $PUBCACHE"
|
||||
- name: Run dart --version
|
||||
shell: bash
|
||||
run: dart --version
|
||||
|
|
5
setup.sh
5
setup.sh
|
@ -78,10 +78,15 @@ download_archive "$ARCHIVE_PATH" "$RUNNER_TOOL_CACHE"
|
|||
|
||||
if [[ $OS_NAME == windows ]]; then
|
||||
FLUTTER_ROOT="${RUNNER_TOOL_CACHE}\\flutter"
|
||||
PUBCACHE="${USERPROFILE}\\.pub-cache"
|
||||
else
|
||||
FLUTTER_ROOT="${RUNNER_TOOL_CACHE}/flutter"
|
||||
PUBCACHE="${HOME}/.pub-cache"
|
||||
fi
|
||||
|
||||
echo "FLUTTER_ROOT=${FLUTTER_ROOT}" >>$GITHUB_ENV
|
||||
echo "PUB_CACHE=${PUBCACHE}" >>$GITHUB_ENV
|
||||
|
||||
echo "${FLUTTER_ROOT}/bin" >>$GITHUB_PATH
|
||||
echo "${FLUTTER_ROOT}/bin/cache/dart-sdk/bin" >>$GITHUB_PATH
|
||||
echo "${PUBCACHE}/bin" >>$GITHUB_PATH
|
||||
|
|
Loading…
Add table
Reference in a new issue