mirror of
https://github.com/subosito/flutter-action.git
synced 2024-08-16 10:19:50 +02:00
Update architecture default as runner.arch
(#153)
* Update architecture default as `runner.arch` * Update to convert `ARCH` as lowercase * Refactor for `ARCH` variable
This commit is contained in:
parent
cf0b7b2cac
commit
0f2cd3391b
2 changed files with 3 additions and 3 deletions
|
@ -27,7 +27,7 @@ inputs:
|
||||||
architecture:
|
architecture:
|
||||||
description: 'The architecture of Flutter SDK executable (x64 or arm64)'
|
description: 'The architecture of Flutter SDK executable (x64 or arm64)'
|
||||||
required: false
|
required: false
|
||||||
default: 'x64'
|
default: ${{ runner.arch }}
|
||||||
runs:
|
runs:
|
||||||
using: 'composite'
|
using: 'composite'
|
||||||
steps:
|
steps:
|
||||||
|
|
2
setup.sh
2
setup.sh
|
@ -95,7 +95,7 @@ done
|
||||||
|
|
||||||
CHANNEL="${@:$OPTIND:1}"
|
CHANNEL="${@:$OPTIND:1}"
|
||||||
VERSION="${@:$OPTIND+1:1}"
|
VERSION="${@:$OPTIND+1:1}"
|
||||||
ARCH="${@:$OPTIND+2:1}"
|
ARCH=$(echo "${@:$OPTIND+2:1}" | awk '{print tolower($0)}')
|
||||||
|
|
||||||
SDK_CACHE="$(transform_path ${CACHE_PATH})"
|
SDK_CACHE="$(transform_path ${CACHE_PATH})"
|
||||||
PUB_CACHE="$(transform_path ${CACHE_PATH}/.pub-cache)"
|
PUB_CACHE="$(transform_path ${CACHE_PATH}/.pub-cache)"
|
||||||
|
|
Loading…
Reference in a new issue