Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

fix: windows CI failed (#6457)

Lucas574b0ce84b6e
diff --git a/.github/actions/flutter_build/action.yml b/.github/actions/flutter_build/action.yml
index 66bfce44a5..bfcb501327 100644
--- a/.github/actions/flutter_build/action.yml
+++ b/.github/actions/flutter_build/action.yml
@@ -58,19 +58,24 @@ runs:
- name: Install prerequisites
working-directory: frontend
+ shell: bash
run: |
- if [ "$RUNNER_OS" == "Linux" ]; then
- sudo wget -qO /etc/apt/trusted.gpg.d/dart_linux_signing_key.asc https://dl-ssl.google.com/linux/linux_signing_key.pub
- sudo wget -qO /etc/apt/sources.list.d/dart_stable.list https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list
- sudo apt-get update
- sudo apt-get install -y dart curl build-essential libssl-dev clang cmake ninja-build pkg-config libgtk-3-dev keybinder-3.0 libnotify-dev libmpv-dev mpv
- elif [ "$RUNNER_OS" == "Windows" ]; then
- vcpkg integrate install
- elif [ "$RUNNER_OS" == "macOS" ]; then
- echo 'do nothing'
- fi
+ case $RUNNER_OS in
+ Linux)
+ sudo wget -qO /etc/apt/trusted.gpg.d/dart_linux_signing_key.asc https://dl-ssl.google.com/linux/linux_signing_key.pub
+ sudo wget -qO /etc/apt/sources.list.d/dart_stable.list https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list
+ sudo apt-get update
+ sudo apt-get install -y dart curl build-essential libssl-dev clang cmake ninja-build pkg-config libgtk-3-dev keybinder-3.0 libnotify-dev
+ ;;
+ Windows)
+ vcpkg integrate install
+ vcpkg update
+ ;;
+ macOS)
+ # No additional prerequisites needed for macOS
+ ;;
+ esac
cargo make appflowy-flutter-deps-tools
- shell: bash
- name: Build AppFlowy
working-directory: frontend
@@ -94,4 +99,4 @@ runs:
- uses: actions/upload-artifact@v4
with:
name: ${{ github.run_id }}-${{ matrix.os }}
- path: appflowy_flutter.tar.gz
\ No newline at end of file
+ path: appflowy_flutter.tar.gz
diff --git a/.github/workflows/flutter_ci.yaml b/.github/workflows/flutter_ci.yaml
index 616dc32a22..d2eeb7078d 100644
--- a/.github/workflows/flutter_ci.yaml
+++ b/.github/workflows/flutter_ci.yaml
@@ -25,9 +25,9 @@ on:
env:
CARGO_TERM_COLOR: always
- FLUTTER_VERSION: "3.22.0"
- RUST_TOOLCHAIN: "1.77.2"
- CARGO_MAKE_VERSION: "0.36.6"
+ FLUTTER_VERSION: "3.22.2"
+ RUST_TOOLCHAIN: "1.80.1"
+ CARGO_MAKE_VERSION: "0.37.18"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
@@ -73,9 +73,9 @@ jobs:
strategy:
fail-fast: true
matrix:
- os: [windows-latest]
+ os: [windows-2019]
include:
- - os: windows-latest
+ - os: windows-2019
flutter_profile: development-windows-x86
target: x86_64-pc-windows-msvc
runs-on: ${{ matrix.os }}