Android: Support 16 KB page size #69
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build ThingSet App | |
| on: push | |
| jobs: | |
| linux-android: | |
| name: Linux & Android | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: "zulu" | |
| java-version: "21" | |
| - uses: subosito/[email protected] | |
| with: | |
| channel: "stable" | |
| flutter-version: "3.35.x" | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update -y | |
| sudo apt-get install -y ninja-build libgtk-3-dev | |
| flutter pub get | |
| - name: Build Linux app | |
| run: | | |
| flutter config --enable-linux-desktop | |
| flutter build linux --release | |
| tar -cjvf thingset-app_${{github.ref_name}}-linux.tar.bz2 -C build/linux/x64/release/bundle . | |
| - name: Build Android app | |
| run: | | |
| mkdir android/.keystore | |
| echo "${{ secrets.ANDROID_KEYSTORE }}" | base64 --decode > android/.keystore/upload-keystore.jks | |
| echo "${{ secrets.ANDROID_KEY_PROPERTIES }}" | base64 --decode > android/key.properties | |
| yes | flutter doctor --android-licenses | |
| flutter build apk | |
| flutter build appbundle | |
| cp build/app/outputs/flutter-apk/app-release.apk thingset-app_${{github.ref_name}}.apk | |
| cp build/app/outputs/bundle/release/app-release.aab thingset-app_${{github.ref_name}}.aab | |
| - name: Upload Linux artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: thingset-app-linux | |
| path: build/linux/x64/release/bundle/* | |
| - name: Upload Android artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: thingset-app-android | |
| path: | | |
| thingset-app_*.apk | |
| thingset-app_*.aab | |
| - name: Upload release files | |
| uses: softprops/action-gh-release@v1 | |
| if: startsWith(github.ref, 'refs/tags/') | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| files: | | |
| thingset-app_*.apk | |
| thingset-app_*.aab | |
| thingset-app_*-linux.tar.bz2 | |
| windows: | |
| name: Windows | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: subosito/[email protected] | |
| with: | |
| channel: "stable" | |
| flutter-version: "3.32.x" | |
| - name: Install dependencies | |
| run: flutter pub get | |
| - name: Build Windows app | |
| run: | | |
| flutter config --enable-windows-desktop | |
| flutter build windows --release | |
| - name: Upload Windows artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: thingset-app-windows | |
| path: build/windows/x64/runner/Release/* | |
| - name: Archive release | |
| uses: thedoctor0/zip-release@master | |
| with: | |
| type: "zip" | |
| filename: thingset-app_${{github.ref_name}}-windows.zip | |
| directory: build/windows/x64/runner/Release | |
| - name: Upload release files | |
| uses: softprops/action-gh-release@v2 | |
| if: startsWith(github.ref, 'refs/tags/') | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| files: build/windows/x64/runner/Release/thingset-app_${{github.ref_name}}-windows.zip | |
| macos-ios: | |
| name: iOS | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: subosito/[email protected] | |
| with: | |
| channel: "stable" | |
| flutter-version: "3.32.x" | |
| architecture: x64 | |
| - name: Install dependencies | |
| run: flutter pub get | |
| # - name: Build macOS app | |
| # run: | | |
| # flutter config --enable-macos-desktop | |
| # flutter build macos --release | |
| - name: Build iOS app | |
| run: | | |
| flutter build ios --release --no-codesign | |
| # - name: Upload macOS artifacts | |
| # uses: actions/upload-artifact@v4 | |
| # with: | |
| # name: thingset-app-macos | |
| # path: build/macos/Build/Products/Release/* | |
| # - name: Archive Release | |
| # uses: thedoctor0/zip-release@master | |
| # with: | |
| # type: "zip" | |
| # filename: thingset-app_${{github.ref_name}}-macos.zip | |
| # directory: build/macos/Build/Products/Release | |
| # - name: macOS Release | |
| # uses: softprops/action-gh-release@v2 | |
| # if: startsWith(github.ref, 'refs/tags/') | |
| # env: | |
| # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| # with: | |
| # files: build/macos/Build/Products/Release/thingset-app_${{github.ref_name}}-macos.zip |