File tree 3 files changed +11
-5
lines changed
3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 12
12
lint_shellcheck :
13
13
runs-on : ubuntu-latest
14
14
steps :
15
- - uses : actions/checkout@v3
15
+ - uses : actions/checkout@v4
16
16
- uses : ludeeus/action-shellcheck@master
17
17
test_channel :
18
18
runs-on : ${{ matrix.operating-system }}
@@ -24,13 +24,16 @@ jobs:
24
24
- operating-system : ubuntu-latest
25
25
channel : main
26
26
steps :
27
- - uses : actions/checkout@v3
27
+ - uses : actions/checkout@v4
28
28
- id : flutter-action
29
29
uses : ./
30
30
with :
31
31
channel : ${{ matrix.channel }}
32
32
- name : Echo outputs
33
33
run : |
34
+ echo RUNNER-OS=${{ runner.os }}
35
+ echo RUNNER-ARCH=${{ runner.arch }}
36
+
34
37
echo CACHE-PATH=${{ steps.flutter-action.outputs.CACHE-PATH }}
35
38
echo CACHE-KEY=${{ steps.flutter-action.outputs.CACHE-KEY }}
36
39
echo CHANNEL=${{ steps.flutter-action.outputs.CHANNEL }}
47
50
matrix :
48
51
operating-system : [ubuntu-latest, windows-latest, macos-latest]
49
52
steps :
50
- - uses : actions/checkout@v3
53
+ - uses : actions/checkout@v4
51
54
- uses : ./
52
55
with :
53
56
channel : stable
60
63
test_print_output :
61
64
runs-on : macos-latest
62
65
steps :
63
- - uses : actions/checkout@v3
66
+ - uses : actions/checkout@v4
64
67
- run : ./setup.sh -t -p | grep 'stable'
65
68
shell : bash
66
69
- run : ./setup.sh -t -p | grep '3.7.7'
Original file line number Diff line number Diff line change 49
49
run : $GITHUB_ACTION_PATH/setup.sh -p -c '${{ inputs.cache-path }}' -k '${{ inputs.cache-key }}' -n '${{ inputs.flutter-version }}' -a '${{ inputs.architecture }}' ${{ inputs.channel }}
50
50
shell : bash
51
51
- if : ${{ inputs.cache == 'true' }}
52
- uses : actions/cache@v3
52
+ uses : actions/cache@v4
53
53
with :
54
54
path : ${{ steps.flutter-action.outputs.CACHE-PATH }}
55
55
key : ${{ steps.flutter-action.outputs.CACHE-KEY }}-${{ hashFiles('**/pubspec.lock') }}
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ if ! check_command jq; then
10
10
fi
11
11
12
12
OS_NAME=$( echo " $RUNNER_OS " | awk ' {print tolower($0)}' )
13
+ ARCH_NAME=$( echo " $RUNNER_ARCH " | awk ' {print tolower($0)}' )
13
14
MANIFEST_BASE_URL=" https://storage.googleapis.com/flutter_infra_release/releases"
14
15
MANIFEST_JSON_PATH=" releases_$OS_NAME .json"
15
16
MANIFEST_URL=" $MANIFEST_BASE_URL /$MANIFEST_JSON_PATH "
@@ -83,6 +84,8 @@ while getopts 'tc:k:pa:n:' flag; do
83
84
esac
84
85
done
85
86
87
+ [[ -z $ARCH ]] && ARCH=" $ARCH_NAME "
88
+
86
89
ARR_CHANNEL=(" ${@: $OPTIND : 1} " )
87
90
CHANNEL=" ${ARR_CHANNEL[0]} "
88
91
You can’t perform that action at this time.
0 commit comments