From 3173eaed22de5efbe4cf732e5e64a78884ac7656 Mon Sep 17 00:00:00 2001 From: Vadim <44135514+vodemn@users.noreply.github.com> Date: Wed, 15 Feb 2023 23:11:49 +0300 Subject: [PATCH] macos runner --- .github/workflows/cd.yml | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) 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