Assumptions Page (#32) #171
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: Builds | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build-on-ubuntu: | |
| name: Build android | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| # Set up Flutter. | |
| - name: Install OpenJDK | |
| uses: actions/setup-java@v3 | |
| with: | |
| distribution: 'zulu' | |
| java-version: '17' | |
| - name: Get latest stable version of Flutter | |
| uses: subosito/flutter-action@v2 | |
| with: | |
| flutter-version-file: pubspec.yaml | |
| channel: stable | |
| cache: true | |
| cache-key: flutter-3.x # optional, change this to force refresh cache | |
| - run: flutter --version | |
| - run: flutter doctor -v | |
| - run: flutter pub get -v | |
| # tests failing here but not locally? | |
| # - run: flutter test | |
| # - run: flutter build web | |
| - name: Decode Keystore | |
| env: | |
| ENCODED_STRING: ${{ secrets.KEYSTORE }} | |
| run: | | |
| TMP_KEYSTORE_FILE_PATH="${RUNNER_TEMP}"/keystore | |
| mkdir "${TMP_KEYSTORE_FILE_PATH}" | |
| echo $ENCODED_STRING | base64 --decode > "${TMP_KEYSTORE_FILE_PATH}"/your_keystore_file.jks | |
| # builds failing with: "Failed to read key from store "/home/runner/work/_temp/keystore/your_keystore_file.jks": Short read of DER length" | |
| # - name: Build APK | |
| # env: | |
| # SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }} | |
| # SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }} | |
| # SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD }} | |
| # KEYSTORE_FILE_PATH: "${{ runner.temp }}/keystore/your_keystore_file.jks" | |
| # run: flutter build apk | |
| # - name: Build AppBundle | |
| # env: | |
| # SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }} | |
| # SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }} | |
| # SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD }} | |
| # KEYSTORE_FILE_PATH: "${{ runner.temp }}/keystore/your_keystore_file.jks" | |
| # run: flutter build appbundle | |
| build-on-macos: | |
| name: Build web + macos-latest | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Get latest stable version of Flutter | |
| uses: subosito/flutter-action@v2 | |
| with: | |
| flutter-version-file: pubspec.yaml | |
| channel: stable | |
| cache: true | |
| cache-key: flutter-3.x # optional, change this to force refresh cache | |
| - run: flutter --version | |
| - run: flutter config --enable-macos-desktop | |
| - run: flutter doctor -v | |
| - run: flutter pub get -v | |
| # tests failing here but not locally? | |
| - run: flutter test | |
| - run: flutter build web | |
| - run: flutter build ios --release --no-codesign | |
| # does not work on macos? | |
| # - run: flutter build apk | |
| # - run: flutter build appbundle |