File tree Expand file tree Collapse file tree 6 files changed +192
-60
lines changed Expand file tree Collapse file tree 6 files changed +192
-60
lines changed Original file line number Diff line number Diff line change 1+ name : Flutter SDK for Linux
2+
3+ on :
4+ push :
5+ branches : [main, v*]
6+ pull_request :
7+ branches : [main, v*]
8+ schedule :
9+ # https://crontab.guru/#40_10_*_*_*
10+ - cron : ' 40 10 * * *'
11+ workflow_dispatch :
12+
13+ concurrency :
14+ group : ${{ github.workflow }}-${{ github.ref }}
15+ cancel-in-progress : true
16+
17+ jobs :
18+ stable :
19+ uses : ./.github/workflows/flutter.yml
20+ strategy :
21+ fail-fast : false
22+ matrix :
23+ version :
24+ - latest
25+ - 3.27.0
26+ with :
27+ runs-on : ubuntu-latest
28+ channel : stable
29+ version : ${{ matrix.version }}
30+
31+ beta :
32+ uses : ./.github/workflows/flutter.yml
33+ strategy :
34+ fail-fast : false
35+ matrix :
36+ version :
37+ - latest
38+ - 3.27.0-0.1.pre
39+ with :
40+ runs-on : ubuntu-latest
41+ channel : beta
42+ version : ${{ matrix.version }}
Original file line number Diff line number Diff line change 1+ name : Flutter SDK for macOS (Intel)
2+
3+ on :
4+ push :
5+ branches : [main, v*]
6+ pull_request :
7+ branches : [main, v*]
8+ schedule :
9+ # https://crontab.guru/#40_10_*_*_*
10+ - cron : ' 40 10 * * *'
11+ workflow_dispatch :
12+
13+ concurrency :
14+ group : ${{ github.workflow }}-${{ github.ref }}
15+ cancel-in-progress : true
16+
17+ jobs :
18+ stable :
19+ uses : ./.github/workflows/flutter.yml
20+ strategy :
21+ fail-fast : false
22+ matrix :
23+ version :
24+ - latest
25+ - 3.27.0
26+ with :
27+ runs-on : macos-13 # Intel Mac
28+ channel : stable
29+ version : ${{ matrix.version }}
30+
31+ beta :
32+ uses : ./.github/workflows/flutter.yml
33+ strategy :
34+ fail-fast : false
35+ matrix :
36+ version :
37+ - latest
38+ - 3.27.0-0.1.pre
39+ with :
40+ runs-on : macos-13 # Intel Mac
41+ channel : beta
42+ version : ${{ matrix.version }}
Original file line number Diff line number Diff line change 1+ name : Flutter SDK for macOS
2+
3+ on :
4+ push :
5+ branches : [main, v*]
6+ pull_request :
7+ branches : [main, v*]
8+ schedule :
9+ # https://crontab.guru/#40_10_*_*_*
10+ - cron : ' 40 10 * * *'
11+ workflow_dispatch :
12+
13+ concurrency :
14+ group : ${{ github.workflow }}-${{ github.ref }}
15+ cancel-in-progress : true
16+
17+ jobs :
18+ stable :
19+ uses : ./.github/workflows/flutter.yml
20+ strategy :
21+ fail-fast : false
22+ matrix :
23+ version :
24+ - latest
25+ - 3.27.0
26+ with :
27+ runs-on : macos-latest # Apple Silicon Mac
28+ channel : stable
29+ version : ${{ matrix.version }}
30+
31+ beta :
32+ uses : ./.github/workflows/flutter.yml
33+ strategy :
34+ fail-fast : false
35+ matrix :
36+ version :
37+ - latest
38+ - 3.27.0-0.1.pre
39+ with :
40+ runs-on : macos-latest # Apple Silicon Mac
41+ channel : beta
42+ version : ${{ matrix.version }}
Original file line number Diff line number Diff line change 1+ name : Flutter SDK for Windows
2+
3+ on :
4+ push :
5+ branches : [main, v*]
6+ pull_request :
7+ branches : [main, v*]
8+ schedule :
9+ # https://crontab.guru/#40_10_*_*_*
10+ - cron : ' 40 10 * * *'
11+ workflow_dispatch :
12+
13+ concurrency :
14+ group : ${{ github.workflow }}-${{ github.ref }}
15+ cancel-in-progress : true
16+
17+ jobs :
18+ stable :
19+ uses : ./.github/workflows/flutter.yml
20+ strategy :
21+ fail-fast : false
22+ matrix :
23+ version :
24+ - latest
25+ - 3.27.0
26+ with :
27+ runs-on : windows-latest
28+ channel : stable
29+ version : ${{ matrix.version }}
30+
31+ beta :
32+ uses : ./.github/workflows/flutter.yml
33+ strategy :
34+ fail-fast : false
35+ matrix :
36+ version :
37+ - latest
38+ - 3.27.0-0.1.pre
39+ with :
40+ runs-on : windows-latest
41+ channel : beta
42+ version : ${{ matrix.version }}
Original file line number Diff line number Diff line change 11name : Flutter
22
33on :
4- push :
5- branches : [main, v*]
6- pull_request :
7- branches : [main, v*]
8- schedule :
9- # https://crontab.guru/#40_10_*_*_*
10- - cron : ' 40 10 * * *'
11- workflow_dispatch :
12-
13- concurrency :
14- group : ${{ github.workflow }}-${{ github.ref }}
15- cancel-in-progress : true
4+ workflow_call :
5+ inputs :
6+ runs-on :
7+ description : ' Operating system'
8+ required : true
9+ default : ' ubuntu-latest'
10+ type : string
11+ channel :
12+ description : ' Flutter channel'
13+ required : true
14+ default : ' stable'
15+ type : string
16+ version :
17+ description : ' Flutter version'
18+ required : true
19+ default : ' latest'
20+ type : string
1621
1722jobs :
1823 stable :
19- runs-on : ${{ matrix.runs-on }}
20- strategy :
21- fail-fast : false
22- matrix :
23- runs-on :
24- - ubuntu-latest
25- - windows-latest
26- - macos-latest # Apple M1 Silicon
27- - macos-13 # Intel macOS
28- version :
29- - latest
30- - 3.27.0
31- steps :
32- - uses : actions/checkout@v4
33-
34- - uses : ./
35- with :
36- version : ${{ matrix.version }}
37- channel : stable
38-
39- - name : Dart version
40- run : dart --version
41- - name : Flutter version
42- run : flutter --version
43- - name : Flutter doctor
44- run : flutter doctor
45-
46- - name : Run hello world
47- run : |
48- echo "main() { print('hello world'); }" > hello.dart
49- dart hello.dart
50-
51- beta :
52- runs-on : ${{ matrix.runs-on }}
53- strategy :
54- fail-fast : false
55- matrix :
56- runs-on :
57- - ubuntu-latest
58- - windows-latest
59- - macos-latest # Apple M1 Silicon
60- - macos-13 # Intel macOS
61- version :
62- - latest
63- - 3.27.0-0.1.pre
24+ runs-on : ${{ inputs.runs-on }}
6425 steps :
6526 - uses : actions/checkout@v4
6627
6728 - uses : ./
6829 with :
69- version : ${{ matrix.version }}
70- channel : beta
30+ channel : ${{ inputs.channel }}
31+ version : ${{ inputs.version }}
7132
7233 - name : Dart version
7334 run : dart --version
Original file line number Diff line number Diff line change @@ -7,7 +7,10 @@ This [GitHub Action] installs and sets up of a Flutter SDK for use in actions by
77* Support for caching the Flutter SDK and pub dependencies
88* Support for automated publishing of packages to [ Pub.dev]
99
10- [ ![ Flutter] ( https://github.com/flutter-actions/setup-flutter/actions/workflows/flutter.yml/badge.svg )] ( https://github.com/flutter-actions/setup-flutter/actions/workflows/flutter.yml )
10+ [ ![ Flutter SDK for Windows] ( https://github.com/flutter-actions/setup-flutter/actions/workflows/flutter-windows.yml/badge.svg )] ( https://github.com/flutter-actions/setup-flutter/actions/workflows/flutter-windows.yml )
11+ [ ![ Flutter SDK for Linux] ( https://github.com/flutter-actions/setup-flutter/actions/workflows/flutter-linux.yml/badge.svg )] ( https://github.com/flutter-actions/setup-flutter/actions/workflows/flutter-linux.yml )
12+ [ ![ Flutter SDK for macOS] ( https://github.com/flutter-actions/setup-flutter/actions/workflows/flutter-macos.yml/badge.svg )] ( https://github.com/flutter-actions/setup-flutter/actions/workflows/flutter-macos.yml )
13+ [ ![ Flutter SDK for macOS (Intel)] ( https://github.com/flutter-actions/setup-flutter/actions/workflows/flutter-macos-intel.yml/badge.svg )] ( https://github.com/flutter-actions/setup-flutter/actions/workflows/flutter-macos-intel.yml )
1114
1215
1316## Inputs
You can’t perform that action at this time.
0 commit comments