diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5d5c289..9d04b27 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,7 +18,9 @@ jobs: channel: ${{ env.FLUTTER_CHANNEL }} cache: true - name: Get dependencies - run: flutter pub get + run: | + sudo apt-get update -y + sudo apt-get install -y ninja-build libgtk-3-dev - name: Build linux run: flutter build linux --release - name: compress bundle @@ -41,17 +43,30 @@ jobs: with: distribution: 'zulu' java-version: ${{ env.JAVA_VERSION }} - - name: Get dependencies - run: flutter pub get - name: Build combined APK run: flutter build apk --release - name: Build split APKs run: flutter build apk --release --split-per-abi - uses: actions/upload-artifact@v4 with: - name: android + name: android-bundle path: | - build/app/outputs/flutter-apk/*.apk + build/app/outputs/flutter-apk/app-release.apk + - uses: actions/upload-artifact@v4 + with: + name: android-x86_64 + path: | + build/app/outputs/flutter-apk/app-x86_64-release.apk + - uses: actions/upload-artifact@v4 + with: + name: android-armeabi-v7a + path: | + build/app/outputs/flutter-apk/app-armeabi-v7a-release.apk + - uses: actions/upload-artifact@v4 + with: + name: android-arm64-v8a + path: | + build/app/outputs/flutter-apk/app-arm64-v8a-release.apk windows: runs-on: windows-latest steps: @@ -60,12 +75,23 @@ jobs: uses: subosito/flutter-action@v2 with: channel: ${{ env.FLUTTER_CHANNEL }} - cache: true - - name: Get dependencies - run: flutter pub get - name: Build windows run: flutter build windows --release - uses: actions/upload-artifact@v4 with: name: windows - path: build/windows/x64/ \ No newline at end of file + path: build/windows/x64/ + macos: + runs-on: macos-latest + steps: + - name: Clone repository + uses: actions/checkout@v4 + - name: Set up Flutter + uses: subosito/flutter-action@v2 + with: + channel: stable + - run: flutter build macos + - uses: actions/upload-artifact@v4 + with: + name: macos + path: build/macos \ No newline at end of file