From 5fe4ae7011e0f73e00169cbc9fffa118faf1c2f8 Mon Sep 17 00:00:00 2001 From: molihuan <1492906929@qq.com> Date: Tue, 14 May 2024 02:04:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=87=AA=E5=8A=A8=E6=89=93?= =?UTF-8?q?=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci_build.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci_build.yml b/.github/workflows/ci_build.yml index 0b7c0b5..2f50833 100644 --- a/.github/workflows/ci_build.yml +++ b/.github/workflows/ci_build.yml @@ -37,10 +37,18 @@ jobs: - run: flutter pub get + + - name: Set up Java for Android build + if: matrix.platform == 'android' + uses: actions/setup-java@v3.13.0 + with: + distribution: 'zulu' + java-version: 17 + - name: Build for Android if: matrix.platform == 'android' run: flutter build apk --release --target-platform ${{ matrix.target-platform }} - + - name: Build for Linux if: matrix.platform == 'linux'