From 680edd5ec297cb3d3ef29cb6f3287fb926347b07 Mon Sep 17 00:00:00 2001 From: realth000 Date: Sun, 26 Nov 2023 02:57:35 +0800 Subject: [PATCH] build(ci): Fix build on Windos --- .github/workflows/test_build.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test_build.yml b/.github/workflows/test_build.yml index 1acc1ba3..93d09799 100644 --- a/.github/workflows/test_build.yml +++ b/.github/workflows/test_build.yml @@ -4,6 +4,9 @@ on: push: branches: [ "master" ] +env: + CI_FLUTTER_VERSION: 3.16.x + jobs: build-linux-android: name: Build Linux and Android @@ -16,7 +19,7 @@ jobs: java-version: '11' - uses: subosito/flutter-action@v2 with: - flutter-version: '3.16.x' + flutter-version: '$CI_FLUTTER_VERSION' - run: | sudo apt update -y sudo apt install -y ninja-build libgtk-3-dev @@ -31,7 +34,7 @@ jobs: - uses: actions/checkout@v3 - uses: subosito/flutter-action@v2 with: - channel: '3.16.x' + flutter-version: '$CI_FLUTTER_VERSION' - run: flutter pub get - run: dart run build_runner build - run: flutter build windows