From 1adee6d0cb499d7d52aa610a60a2eff07906eb98 Mon Sep 17 00:00:00 2001 From: Kingtous Date: Fri, 12 May 2023 15:16:25 +0800 Subject: [PATCH] feat: try upgrade to flutter 3.10 --- .github/workflows/bridge.yml | 5 ++++- .github/workflows/flutter-build.yml | 22 ++++++++++++---------- 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/.github/workflows/bridge.yml b/.github/workflows/bridge.yml index 581a585ea..2e7d1e3b1 100644 --- a/.github/workflows/bridge.yml +++ b/.github/workflows/bridge.yml @@ -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 diff --git a/.github/workflows/flutter-build.yml b/.github/workflows/flutter-build.yml index 61543b8ad..8451a2a19 100644 --- a/.github/workflows/flutter-build.yml +++ b/.github/workflows/flutter-build.yml @@ -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