feat: try upgrade to flutter 3.10

This commit is contained in:
Kingtous 2023-05-12 15:16:25 +08:00
parent 8be1f5fc3d
commit 1adee6d0cb
2 changed files with 16 additions and 11 deletions

View File

@ -5,6 +5,9 @@ name: Build flutter-rust-bridge
on:
workflow_call:
env:
FLUTTER_VERSION: "3.10.0"
jobs:
generate_bridge:
runs-on: ${{ matrix.job.os }}
@ -51,7 +54,7 @@ jobs:
uses: subosito/flutter-action@v2
with:
channel: "stable"
flutter-version: "3.7.0"
flutter-version: ${{ env.FLUTTER_VERSION }}
cache: true
- name: Install flutter rust bridge deps

View File

@ -9,7 +9,10 @@ on:
env:
LLVM_VERSION: "15.0.6"
FLUTTER_VERSION: "3.7.0"
FLUTTER_VERSION: "3.10.0"
# for arm64 linux
FLUTTER_ELINUX_VERSION: "3.7.0"
FLUTTER_ELINUX_COMMIT_ID: "51a1d685901f79fbac51665a967c3a1a789ecee5"
TAG_NAME: "nightly"
# vcpkg version: 2023.04.15
# for multiarch gcc compatibility
@ -52,13 +55,13 @@ jobs:
flutter-version: ${{ env.FLUTTER_VERSION }}
cache: true
- name: Replace engine with rustdesk custom flutter engine
run: |
flutter doctor -v
flutter precache --windows
Invoke-WebRequest -Uri https://github.com/Kingtous/engine/releases/download/v3.7.0-rustdesk/windows-x64-release-flutter.zip -OutFile windows-x64-flutter-release.zip
Expand-Archive windows-x64-flutter-release.zip -DestinationPath engine
mv -Force engine/* C:/hostedtoolcache/windows/flutter/stable-${{ env.FLUTTER_VERSION }}-x64/bin/cache/artifacts/engine/windows-x64-release/
# - name: Replace engine with rustdesk custom flutter engine
# run: |
# flutter doctor -v
# flutter precache --windows
# Invoke-WebRequest -Uri https://github.com/Kingtous/engine/releases/download/v3.7.0-rustdesk/windows-x64-release-flutter.zip -OutFile windows-x64-flutter-release.zip
# Expand-Archive windows-x64-flutter-release.zip -DestinationPath engine
# mv -Force engine/* C:/hostedtoolcache/windows/flutter/stable-${{ env.FLUTTER_VERSION }}-x64/bin/cache/artifacts/engine/windows-x64-release/
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
@ -1169,9 +1172,8 @@ jobs:
# clone repo and reset to flutter 3.7.0
git clone https://github.com/sony/flutter-elinux.git || true
pushd flutter-elinux
# reset to flutter 3.7.0
git fetch
git reset --hard 51a1d685901f79fbac51665a967c3a1a789ecee5
git reset --hard ${{ env.FLUTTER_ELINUX_COMMIT_ID }}
popd
- uses: Kingtous/run-on-arch-action@amd64-support