fix PUB_CACHE env
Some checks failed
Main workflow / test_channel (beta, ubuntu-latest) (push) Failing after 16s
Main workflow / test_channel (dev, ubuntu-latest) (push) Failing after 16s
Main workflow / test_version (1) (push) Failing after 7s
Main workflow / test_version (v1.12) (push) Failing after 14s
Main workflow / test_channel (stable, ubuntu-latest) (push) Failing after 19s
Main workflow / test_version (2.5.3) (push) Failing after 7s
Main workflow / test_version (2.x) (push) Failing after 14s
Main workflow / test_any_channel (push) Failing after 15s
Main workflow / test_channel (beta, macos-latest) (push) Failing after 2s
Main workflow / test_channel (dev, macos-latest) (push) Failing after 2s
Main workflow / test_channel (stable, macos-latest) (push) Failing after 2s
Main workflow / test_channel (dev, windows-latest) (push) Has been cancelled
Main workflow / test_channel (stable, windows-latest) (push) Has been cancelled
Main workflow / test_master_channel (push) Has been cancelled
Main workflow / test_channel (beta, windows-latest) (push) Has been cancelled
Some checks failed
Main workflow / test_channel (beta, ubuntu-latest) (push) Failing after 16s
Main workflow / test_channel (dev, ubuntu-latest) (push) Failing after 16s
Main workflow / test_version (1) (push) Failing after 7s
Main workflow / test_version (v1.12) (push) Failing after 14s
Main workflow / test_channel (stable, ubuntu-latest) (push) Failing after 19s
Main workflow / test_version (2.5.3) (push) Failing after 7s
Main workflow / test_version (2.x) (push) Failing after 14s
Main workflow / test_any_channel (push) Failing after 15s
Main workflow / test_channel (beta, macos-latest) (push) Failing after 2s
Main workflow / test_channel (dev, macos-latest) (push) Failing after 2s
Main workflow / test_channel (stable, macos-latest) (push) Failing after 2s
Main workflow / test_channel (dev, windows-latest) (push) Has been cancelled
Main workflow / test_channel (stable, windows-latest) (push) Has been cancelled
Main workflow / test_master_channel (push) Has been cancelled
Main workflow / test_channel (beta, windows-latest) (push) Has been cancelled
This commit is contained in:
4
.github/workflows/workflow.yml
vendored
4
.github/workflows/workflow.yml
vendored
@@ -16,9 +16,9 @@ jobs:
|
|||||||
- name: Print FLUTTER_ROOT
|
- name: Print FLUTTER_ROOT
|
||||||
shell: bash
|
shell: bash
|
||||||
run: echo "FLUTTER_ROOT set to $FLUTTER_ROOT"
|
run: echo "FLUTTER_ROOT set to $FLUTTER_ROOT"
|
||||||
- name: Print PUBCACHE
|
- name: Print PUB_CACHE
|
||||||
shell: bash
|
shell: bash
|
||||||
run: echo "PUBCACHE set to $PUBCACHE"
|
run: echo "PUB_CACHE set to $PUB_CACHE"
|
||||||
- name: Run dart --version
|
- name: Run dart --version
|
||||||
shell: bash
|
shell: bash
|
||||||
run: dart --version
|
run: dart --version
|
||||||
|
|||||||
8
setup.sh
8
setup.sh
@@ -80,15 +80,15 @@ fi
|
|||||||
|
|
||||||
if [[ $OS_NAME == windows ]]; then
|
if [[ $OS_NAME == windows ]]; then
|
||||||
FLUTTER_ROOT="${RUNNER_TOOL_CACHE}\\flutter"
|
FLUTTER_ROOT="${RUNNER_TOOL_CACHE}\\flutter"
|
||||||
PUBCACHE="${USERPROFILE}\\.pub-cache"
|
PUB_CACHE="${USERPROFILE}\\.pub-cache"
|
||||||
else
|
else
|
||||||
FLUTTER_ROOT="${RUNNER_TOOL_CACHE}/flutter"
|
FLUTTER_ROOT="${RUNNER_TOOL_CACHE}/flutter"
|
||||||
PUBCACHE="${HOME}/.pub-cache"
|
PUB_CACHE="${HOME}/.pub-cache"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "FLUTTER_ROOT=${FLUTTER_ROOT}" >>$GITHUB_ENV
|
echo "FLUTTER_ROOT=${FLUTTER_ROOT}" >>$GITHUB_ENV
|
||||||
echo "PUB_CACHE=${PUBCACHE}" >>$GITHUB_ENV
|
echo "PUB_CACHE=${PUB_CACHE}" >>$GITHUB_ENV
|
||||||
|
|
||||||
echo "${FLUTTER_ROOT}/bin" >>$GITHUB_PATH
|
echo "${FLUTTER_ROOT}/bin" >>$GITHUB_PATH
|
||||||
echo "${FLUTTER_ROOT}/bin/cache/dart-sdk/bin" >>$GITHUB_PATH
|
echo "${FLUTTER_ROOT}/bin/cache/dart-sdk/bin" >>$GITHUB_PATH
|
||||||
echo "${PUBCACHE}/bin" >>$GITHUB_PATH
|
echo "${PUB_CACHE}/bin" >>$GITHUB_PATH
|
||||||
|
|||||||
Reference in New Issue
Block a user