Set architecture options from runner's architecture (#264)
* feat: Add ARCH_NAME variable and set default ARCH value * chore: Show runner's os and architecture * chore: Update actions
This commit is contained in:
3
setup.sh
3
setup.sh
@@ -10,6 +10,7 @@ if ! check_command jq; then
|
||||
fi
|
||||
|
||||
OS_NAME=$(echo "$RUNNER_OS" | awk '{print tolower($0)}')
|
||||
ARCH_NAME=$(echo "$RUNNER_ARCH" | awk '{print tolower($0)}')
|
||||
MANIFEST_BASE_URL="https://storage.googleapis.com/flutter_infra_release/releases"
|
||||
MANIFEST_JSON_PATH="releases_$OS_NAME.json"
|
||||
MANIFEST_URL="$MANIFEST_BASE_URL/$MANIFEST_JSON_PATH"
|
||||
@@ -83,6 +84,8 @@ while getopts 'tc:k:pa:n:' flag; do
|
||||
esac
|
||||
done
|
||||
|
||||
[[ -z $ARCH ]] && ARCH="$ARCH_NAME"
|
||||
|
||||
ARR_CHANNEL=("${@:$OPTIND:1}")
|
||||
CHANNEL="${ARR_CHANNEL[0]}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user