cd: lock flutter version to 3.3

This commit is contained in:
Kingkor Roy Tirtho 2023-02-03 21:01:18 +06:00
parent 9f959ce77c
commit 1bb38c3917

View File

@ -13,6 +13,7 @@ jobs:
- uses: subosito/flutter-action@v2.8.0 - uses: subosito/flutter-action@v2.8.0
with: with:
cache: true cache: true
flutter-version: '3.3.8'
- name: Get current date - name: Get current date
id: date id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')" run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
@ -56,6 +57,7 @@ jobs:
- uses: subosito/flutter-action@v2.8.0 - uses: subosito/flutter-action@v2.8.0
with: with:
cache: true cache: true
flutter-version: '3.3.8'
- run: | - run: |
sudo apt-get update -y sudo apt-get update -y
sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-dev make python3-pip python3-setuptools patchelf desktop-file-utils libgdk-pixbuf2.0-dev fakeroot strace fuse sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-dev make python3-pip python3-setuptools patchelf desktop-file-utils libgdk-pixbuf2.0-dev fakeroot strace fuse
@ -90,6 +92,7 @@ jobs:
- uses: subosito/flutter-action@v2.8.0 - uses: subosito/flutter-action@v2.8.0
with: with:
cache: true cache: true
flutter-version: '3.3.8'
- run: | - run: |
choco install sed make yq -y choco install sed make yq -y
yq -i '.version |= sub("\+\d+", "-nightly-")' pubspec.yaml yq -i '.version |= sub("\+\d+", "-nightly-")' pubspec.yaml
@ -120,6 +123,7 @@ jobs:
- uses: subosito/flutter-action@v2.8.0 - uses: subosito/flutter-action@v2.8.0
with: with:
cache: true cache: true
flutter-version: '3.3.8'
- run: brew install yq - run: brew install yq
- run: yq -i '.version |= sub("\+\d+", "-nightly-")' pubspec.yaml - run: yq -i '.version |= sub("\+\d+", "-nightly-")' pubspec.yaml
- run: yq -i '.version += strenv(GITHUB_RUN_NUMBER)' pubspec.yaml - run: yq -i '.version += strenv(GITHUB_RUN_NUMBER)' pubspec.yaml