简化linux arm打包流程 (#193)

* Update main.yml

* Update main.yml
This commit is contained in:
铺盖崽
2025-02-14 08:50:04 +08:00
committed by GitHub
parent fec1926774
commit 455c6c1356

View File

@@ -160,17 +160,11 @@ jobs:
runs-on: ubuntu-22.04-arm runs-on: ubuntu-22.04-arm
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Setup Flutter - uses: subosito/flutter-action@v2
run: | with:
FLUTTER_VERSION=$(grep " flutter:" pubspec.yaml | cut -d':' -f2 | tr -d ' ') channel: 'master'
sudo apt-get update -y && sudo apt-get upgrade -y; flutter-version-file: pubspec.yaml
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 - run: |
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: |
flutter pub get flutter pub get
sudo apt-get update -y sudo apt-get update -y
sudo apt-get install -y ninja-build libgtk-3-dev webkit2gtk-4.1 sudo apt-get install -y ninja-build libgtk-3-dev webkit2gtk-4.1