From 455c6c1356e1045234d8ab68f86254ab07ba5285 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=93=BA=E7=9B=96=E5=B4=BD?= Date: Fri, 14 Feb 2025 08:50:04 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=80=E5=8C=96linux=20arm=E6=89=93=E5=8C=85?= =?UTF-8?q?=E6=B5=81=E7=A8=8B=20(#193)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update main.yml * Update main.yml --- .github/workflows/main.yml | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c11463a..7900e6b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -160,17 +160,11 @@ jobs: runs-on: ubuntu-22.04-arm steps: - uses: actions/checkout@v4 - - name: Setup Flutter - run: | - FLUTTER_VERSION=$(grep " flutter:" pubspec.yaml | cut -d':' -f2 | tr -d ' ') - sudo apt-get update -y && sudo apt-get upgrade -y; - sudo apt-get install -y curl git unzip xz-utils zip libglu1-mesa clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev libstdc++-12-dev - git clone --depth 1 --branch $FLUTTER_VERSION https://github.com/flutter/flutter.git $RUNNER_TEMP/flutter - echo "$RUNNER_TEMP/flutter/bin" >> $GITHUB_PATH - - name: Install Flutter - run: flutter doctor - - name: Install dependencies - run: | + - uses: subosito/flutter-action@v2 + with: + channel: 'master' + flutter-version-file: pubspec.yaml + - run: | flutter pub get sudo apt-get update -y sudo apt-get install -y ninja-build libgtk-3-dev webkit2gtk-4.1