Skip to content

Commit 57fbe87

Browse files
authored
ci: install flutter via subosito/flutter-action@v2 (#412)
1 parent b018a10 commit 57fbe87

File tree

4 files changed

+72
-42
lines changed

4 files changed

+72
-42
lines changed

.github/workflows/all_plugins.yaml

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ jobs:
2424
steps:
2525
- name: "Checkout repository"
2626
uses: actions/checkout@v2
27-
- name: "Install Flutter"
28-
run: ./.github/workflows/scripts/install-flutter.sh stable
27+
- name: Set up Flutter
28+
uses: subosito/flutter-action@v2
29+
with:
30+
channel: stable
2931
- name: "Install Tools"
3032
run: |
3133
./.github/workflows/scripts/install-tools.sh
@@ -41,8 +43,10 @@ jobs:
4143
steps:
4244
- name: "Checkout repository"
4345
uses: actions/checkout@v2
44-
- name: "Install Flutter"
45-
run: ./.github/workflows/scripts/install-flutter.sh stable
46+
- name: Set up Flutter
47+
uses: subosito/flutter-action@v2
48+
with:
49+
channel: stable
4650
- name: "Install Tools"
4751
run: |
4852
./.github/workflows/scripts/install-tools.sh
@@ -60,8 +64,10 @@ jobs:
6064
steps:
6165
- name: "Checkout repository"
6266
uses: actions/checkout@v2
63-
- name: "Install Flutter"
64-
run: ./.github/workflows/scripts/install-flutter.sh stable
67+
- name: Set up Flutter
68+
uses: subosito/flutter-action@v2
69+
with:
70+
channel: stable
6571
- name: "Install Tools"
6672
run: |
6773
./.github/workflows/scripts/install-tools.sh
@@ -81,8 +87,10 @@ jobs:
8187
uses: actions/checkout@v2
8288
with:
8389
fetch-depth: 0
84-
- name: "Install Flutter"
85-
run: ./.github/workflows/scripts/install-flutter.sh stable
90+
- name: Set up Flutter
91+
uses: subosito/flutter-action@v2
92+
with:
93+
channel: stable
8694
- name: "Install Tools"
8795
run: |
8896
./.github/workflows/scripts/install-tools.sh
@@ -115,8 +123,10 @@ jobs:
115123
with:
116124
fetch-depth: 0
117125

118-
- name: "Install Flutter"
119-
run: ./.github/workflows/scripts/install-flutter.sh stable
126+
- name: Set up Flutter
127+
uses: subosito/flutter-action@v2
128+
with:
129+
channel: stable
120130

121131
- name: "Install Tools"
122132
run: ./.github/workflows/scripts/install-tools.sh
@@ -147,8 +157,10 @@ jobs:
147157
with:
148158
fetch-depth: 0
149159

150-
- name: "Install Flutter"
151-
run: ./.github/workflows/scripts/install-flutter.sh stable
160+
- name: Set up Flutter
161+
uses: subosito/flutter-action@v2
162+
with:
163+
channel: stable
152164

153165
- name: "Install Tools"
154166
run: ./.github/workflows/scripts/install-tools.sh

.github/workflows/scripts/install-flutter.sh

Lines changed: 0 additions & 6 deletions
This file was deleted.

.github/workflows/wifi_iot.yaml

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ jobs:
2525
with:
2626
distribution: "temurin"
2727
java-version: 17
28-
- name: "Install Flutter"
29-
run: ./.github/workflows/scripts/install-flutter.sh stable
28+
- name: Set up Flutter
29+
uses: subosito/flutter-action@v2
30+
with:
31+
channel: stable
3032
- name: "Install Tools"
3133
run: ./.github/workflows/scripts/install-tools.sh
3234
- name: "Build Example"
@@ -38,8 +40,10 @@ jobs:
3840
steps:
3941
- name: "Checkout repository"
4042
uses: actions/checkout@v2
41-
- name: "Install Flutter"
42-
run: ./.github/workflows/scripts/install-flutter.sh stable
43+
- name: Set up Flutter
44+
uses: subosito/flutter-action@v2
45+
with:
46+
channel: stable
4347
- name: "Install Tools"
4448
run: ./.github/workflows/scripts/install-tools.sh
4549
- name: "Build Example"
@@ -51,8 +55,10 @@ jobs:
5155
# steps:
5256
# - name: "Checkout repository"
5357
# uses: actions/checkout@v2
54-
# - name: "Install Flutter"
55-
# run: ./.github/workflows/scripts/install-flutter.sh stable
58+
# - name: Set up Flutter
59+
# uses: subosito/flutter-action@v2
60+
# with:
61+
# channel: stable
5662
# - name: "Install Tools"
5763
# run: ./.github/workflows/scripts/install-tools.sh
5864
# - name: "Build Example"
@@ -64,8 +70,10 @@ jobs:
6470
# steps:
6571
# - name: "Checkout repository"
6672
# uses: actions/checkout@v2
67-
# - name: "Install Flutter"
68-
# run: ./.github/workflows/scripts/install-flutter.sh stable
73+
# - name: Set up Flutter
74+
# uses: subosito/flutter-action@v2
75+
# with:
76+
# channel: stable
6977
# - name: "Install Tools"
7078
# run: ./.github/workflows/scripts/install-tools.sh
7179
# - name: "Build Example"
@@ -77,8 +85,10 @@ jobs:
7785
# steps:
7886
# - name: "Checkout repository"
7987
# uses: actions/checkout@v2
80-
# - name: "Install Flutter"
81-
# run: ./.github/workflows/scripts/install-flutter.sh stable
88+
# - name: Set up Flutter
89+
# uses: subosito/flutter-action@v2
90+
# with:
91+
# channel: stable
8292
# - name: "Install Tools"
8393
# run: ./.github/workflows/scripts/install-tools.sh
8494
# - name: "Build Example"
@@ -90,8 +100,10 @@ jobs:
90100
# steps:
91101
# - name: "Checkout repository"
92102
# uses: actions/checkout@v2
93-
# - name: "Install Flutter"
94-
# run: ./.github/workflows/scripts/install-flutter.sh stable
103+
# - name: Set up Flutter
104+
# uses: subosito/flutter-action@v2
105+
# with:
106+
# channel: stable
95107
# - name: "Install Tools"
96108
# run: ./.github/workflows/scripts/install-tools.sh
97109
# - name: "Build Example"

.github/workflows/wifi_scan.yaml

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ jobs:
2525
with:
2626
distribution: "temurin"
2727
java-version: 17
28-
- name: "Install Flutter"
29-
run: ./.github/workflows/scripts/install-flutter.sh stable
28+
- name: Set up Flutter
29+
uses: subosito/flutter-action@v2
30+
with:
31+
channel: stable
3032
- name: "Install Tools"
3133
run: ./.github/workflows/scripts/install-tools.sh
3234
- name: "Build Example"
@@ -38,8 +40,10 @@ jobs:
3840
steps:
3941
- name: "Checkout repository"
4042
uses: actions/checkout@v2
41-
- name: "Install Flutter"
42-
run: ./.github/workflows/scripts/install-flutter.sh stable
43+
- name: Set up Flutter
44+
uses: subosito/flutter-action@v2
45+
with:
46+
channel: stable
4347
- name: "Install Tools"
4448
run: ./.github/workflows/scripts/install-tools.sh
4549
- name: "Build Example"
@@ -51,8 +55,10 @@ jobs:
5155
# steps:
5256
# - name: "Checkout repository"
5357
# uses: actions/checkout@v2
54-
# - name: "Install Flutter"
55-
# run: ./.github/workflows/scripts/install-flutter.sh stable
58+
# - name: Set up Flutter
59+
# uses: subosito/flutter-action@v2
60+
# with:
61+
# channel: stable
5662
# - name: "Install Tools"
5763
# run: ./.github/workflows/scripts/install-tools.sh
5864
# - name: "Build Example"
@@ -64,8 +70,10 @@ jobs:
6470
# steps:
6571
# - name: "Checkout repository"
6672
# uses: actions/checkout@v2
67-
# - name: "Install Flutter"
68-
# run: ./.github/workflows/scripts/install-flutter.sh stable
73+
# - name: Set up Flutter
74+
# uses: subosito/flutter-action@v2
75+
# with:
76+
# channel: stable
6977
# - name: "Install Tools"
7078
# run: ./.github/workflows/scripts/install-tools.sh
7179
# - name: "Build Example"
@@ -77,8 +85,10 @@ jobs:
7785
# steps:
7886
# - name: "Checkout repository"
7987
# uses: actions/checkout@v2
80-
# - name: "Install Flutter"
81-
# run: ./.github/workflows/scripts/install-flutter.sh stable
88+
# - name: Set up Flutter
89+
# uses: subosito/flutter-action@v2
90+
# with:
91+
# channel: stable
8292
# - name: "Install Tools"
8393
# run: ./.github/workflows/scripts/install-tools.sh
8494
# - name: "Build Example"
@@ -90,8 +100,10 @@ jobs:
90100
# steps:
91101
# - name: "Checkout repository"
92102
# uses: actions/checkout@v2
93-
# - name: "Install Flutter"
94-
# run: ./.github/workflows/scripts/install-flutter.sh stable
103+
# - name: Set up Flutter
104+
# uses: subosito/flutter-action@v2
105+
# with:
106+
# channel: stable
95107
# - name: "Install Tools"
96108
# run: ./.github/workflows/scripts/install-tools.sh
97109
# - name: "Build Example"

0 commit comments

Comments
 (0)