Skip to content

Commit 62f096c

Browse files
authored
Update README (#266)
* doc: Update README * fix: Specify the dev channel version
1 parent 8440825 commit 62f096c

File tree

1 file changed

+17
-27
lines changed

1 file changed

+17
-27
lines changed

README.md

Lines changed: 17 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ Use specific version and channel:
88

99
```yaml
1010
steps:
11-
- uses: actions/checkout@v3
11+
- uses: actions/checkout@v4
1212
- uses: subosito/flutter-action@v2
1313
with:
14-
flutter-version: '3.7.7'
14+
flutter-version: '3.16.9'
1515
channel: 'stable'
1616
- run: flutter --version
1717
```
@@ -20,7 +20,7 @@ Use latest release for particular channel:
2020
2121
```yaml
2222
steps:
23-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v4
2424
- uses: subosito/flutter-action@v2
2525
with:
2626
channel: 'stable' # or: 'beta', 'dev', 'master' (or 'main')
@@ -31,7 +31,7 @@ Use latest release for particular version and/or channel:
3131
3232
```yaml
3333
steps:
34-
- uses: actions/checkout@v3
34+
- uses: actions/checkout@v4
3535
- uses: subosito/flutter-action@v2
3636
with:
3737
flutter-version: '1.22.x'
@@ -43,10 +43,10 @@ Use particular version on any channel:
4343
4444
```yaml
4545
steps:
46-
- uses: actions/checkout@v3
46+
- uses: actions/checkout@v4
4747
- uses: subosito/flutter-action@v2
4848
with:
49-
flutter-version: '2.x'
49+
flutter-version: '3.x'
5050
channel: 'any'
5151
- run: flutter --version
5252
```
@@ -55,7 +55,7 @@ Use particular git reference on master channel:
5555
5656
```yaml
5757
steps:
58-
- uses: actions/checkout@v3
58+
- uses: actions/checkout@v4
5959
- uses: subosito/flutter-action@v2
6060
with:
6161
flutter-version: '5b12b74' # tag, commit or branch
@@ -67,14 +67,10 @@ Build Android APK and app bundle:
6767
6868
```yaml
6969
steps:
70-
- uses: actions/checkout@v3
71-
- uses: actions/setup-java@v2
72-
with:
73-
distribution: 'zulu'
74-
java-version: '11'
70+
- uses: actions/checkout@v4
7571
- uses: subosito/flutter-action@v2
7672
with:
77-
flutter-version: '3.7.7'
73+
flutter-version: '3.16.9'
7874
- run: flutter pub get
7975
- run: flutter test
8076
- run: flutter build apk
@@ -88,11 +84,10 @@ jobs:
8884
build:
8985
runs-on: macos-latest
9086
steps:
91-
- uses: actions/checkout@v3
87+
- uses: actions/checkout@v4
9288
- uses: subosito/flutter-action@v2
9389
with:
9490
channel: 'stable'
95-
architecture: x64
9691
- run: flutter pub get
9792
- run: flutter test
9893
- run: flutter build ios --release --no-codesign
@@ -102,7 +97,7 @@ Build for the web:
10297
10398
```yaml
10499
steps:
105-
- uses: actions/checkout@v3
100+
- uses: actions/checkout@v4
106101
- uses: subosito/flutter-action@v2
107102
with:
108103
channel: 'stable'
@@ -118,11 +113,10 @@ jobs:
118113
build:
119114
runs-on: windows-latest
120115
steps:
121-
- uses: actions/checkout@v3
116+
- uses: actions/checkout@v4
122117
- uses: subosito/flutter-action@v2
123118
with:
124-
channel: 'beta'
125-
- run: flutter config --enable-windows-desktop
119+
channel: 'stable'
126120
- run: flutter build windows
127121
```
128122
@@ -133,14 +127,13 @@ jobs:
133127
build:
134128
runs-on: ubuntu-latest
135129
steps:
136-
- uses: actions/checkout@v3
130+
- uses: actions/checkout@v4
137131
- uses: subosito/flutter-action@v2
138132
with:
139133
channel: 'stable'
140134
- run: |
141135
sudo apt-get update -y
142136
sudo apt-get install -y ninja-build libgtk-3-dev
143-
- run: flutter config --enable-linux-desktop
144137
- run: flutter build linux
145138
```
146139
@@ -151,20 +144,18 @@ jobs:
151144
build:
152145
runs-on: macos-latest
153146
steps:
154-
- uses: actions/checkout@v3
147+
- uses: actions/checkout@v4
155148
- uses: subosito/flutter-action@v2
156149
with:
157150
channel: 'stable'
158-
architecture: x64
159-
- run: flutter config --enable-macos-desktop
160151
- run: flutter build macos
161152
```
162153
163154
Integration with `actions/cache`:
164155

165156
```yaml
166157
steps:
167-
- uses: actions/checkout@v3
158+
- uses: actions/checkout@v4
168159
- uses: subosito/flutter-action@v2
169160
with:
170161
channel: 'stable'
@@ -173,7 +164,6 @@ steps:
173164
cache-path: '${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:' # optional, change this to specify the cache path
174165
pub-cache-key: 'flutter-pub:os:-:channel:-:version:-:arch:-:hash:' # optional, change this to force refresh cache of dart pub get dependencies
175166
pub-cache-path: '${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:' # optional, change this to specify the cache path
176-
architecture: x64 # optional, x64 or arm64
177167
- run: flutter --version
178168
```
179169

@@ -190,7 +180,7 @@ Use outputs from `flutter-action`:
190180

191181
```yaml
192182
steps:
193-
- uses: actions/checkout@v3
183+
- uses: actions/checkout@v4
194184
- id: flutter-action
195185
uses: subosito/flutter-action@v2
196186
with:

0 commit comments

Comments
 (0)