diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 68c6482..624b68b 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -13,7 +13,8 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: macos-11 + timeout-minutes: 30 steps: - uses: actions/checkout@v3 @@ -21,9 +22,6 @@ jobs: with: distribution: "zulu" java-version: "11" - - uses: subosito/flutter-action@v2 - with: - channel: "stable" - name: Restore Android keystore .jsk and .properties files env: @@ -37,17 +35,16 @@ jobs: echo -n "$KEYSTORE_PROPERTIES" | base64 --decode --output $KEYSTORE_PROPERTIES_PATH cp $KEYSTORE_PROPERTIES_PATH ./android - - name: Check flutter version - run: flutter --version + - name: Install Flutter + uses: subosito/flutter-action@v2 + with: + channel: "stable" - - name: Install dependencies - run: flutter pub get - - - name: Generate intl - run: flutter pub run intl_utils:generate - - - name: Analyze project source - run: flutter analyze + - name: Prepare flutter project + run: | + flutter --version + flutter pub get + flutter pub run intl_utils:generate - name: Build Apk run: flutter build apk --flavor dev --dart-define cameraPreviewAspectRatio=2/3 -t lib/main_dev.dart