1
0
Fork 0
mirror of https://github.com/subosito/flutter-action.git synced 2024-08-16 10:19:50 +02:00

update readme

This commit is contained in:
Alif Rachmawadi 2022-07-25 19:35:02 +07:00
parent ebff0a3874
commit e5fb13927b
No known key found for this signature in database
GPG key ID: 19EE1E10C3733F31

View file

@ -11,7 +11,7 @@ steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
flutter-version: '2.8.0'
flutter-version: '3.0.5'
channel: 'stable'
- run: flutter --version
```
@ -62,7 +62,7 @@ steps:
java-version: '11'
- uses: subosito/flutter-action@v2
with:
flutter-version: '2.10.4'
flutter-version: '3.0.5'
- run: flutter pub get
- run: flutter test
- run: flutter build apk
@ -79,7 +79,7 @@ jobs:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
flutter-version: '2.10.4'
channel: 'stable'
architecture: x64
- run: flutter pub get
- run: flutter test
@ -93,7 +93,7 @@ steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
flutter-version: '2.10.4'
channel: 'stable'
- run: flutter pub get
- run: flutter test
- run: flutter build web
@ -124,7 +124,7 @@ jobs:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: 'beta'
channel: 'stable'
- run: |
sudo apt-get update -y
sudo apt-get install -y ninja-build libgtk-3-dev
@ -142,7 +142,7 @@ jobs:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
channel: 'beta'
channel: 'stable'
architecture: x64
- run: flutter config --enable-macos-desktop
- run: flutter build macos
@ -155,7 +155,6 @@ steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
flutter-version: '2.10.x'
channel: 'stable'
cache: true
cache-key: 'flutter-:os:-:arch:-:channel:-:version:-:hash:' # optional, change this to force refresh cache
@ -163,3 +162,12 @@ steps:
architecture: x64 # optional, x64 or arm64
- run: flutter --version
```
Note: `cache-key` has support for several dynamic values:
- `:os:`
- `:arch:`
- `:channel:`
- `:version:`
- `:hash:`
- `:sha256:`