mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2025-05-19 22:50:40 +00:00
macos runner
This commit is contained in:
parent
d258a8f715
commit
3173eaed22
1 changed files with 11 additions and 14 deletions
25
.github/workflows/cd.yml
vendored
25
.github/workflows/cd.yml
vendored
|
@ -13,7 +13,8 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: macos-11
|
||||||
|
timeout-minutes: 30
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
@ -21,9 +22,6 @@ jobs:
|
||||||
with:
|
with:
|
||||||
distribution: "zulu"
|
distribution: "zulu"
|
||||||
java-version: "11"
|
java-version: "11"
|
||||||
- uses: subosito/flutter-action@v2
|
|
||||||
with:
|
|
||||||
channel: "stable"
|
|
||||||
|
|
||||||
- name: Restore Android keystore .jsk and .properties files
|
- name: Restore Android keystore .jsk and .properties files
|
||||||
env:
|
env:
|
||||||
|
@ -37,17 +35,16 @@ jobs:
|
||||||
echo -n "$KEYSTORE_PROPERTIES" | base64 --decode --output $KEYSTORE_PROPERTIES_PATH
|
echo -n "$KEYSTORE_PROPERTIES" | base64 --decode --output $KEYSTORE_PROPERTIES_PATH
|
||||||
cp $KEYSTORE_PROPERTIES_PATH ./android
|
cp $KEYSTORE_PROPERTIES_PATH ./android
|
||||||
|
|
||||||
- name: Check flutter version
|
- name: Install Flutter
|
||||||
run: flutter --version
|
uses: subosito/flutter-action@v2
|
||||||
|
with:
|
||||||
|
channel: "stable"
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Prepare flutter project
|
||||||
run: flutter pub get
|
run: |
|
||||||
|
flutter --version
|
||||||
- name: Generate intl
|
flutter pub get
|
||||||
run: flutter pub run intl_utils:generate
|
flutter pub run intl_utils:generate
|
||||||
|
|
||||||
- name: Analyze project source
|
|
||||||
run: flutter analyze
|
|
||||||
|
|
||||||
- name: Build Apk
|
- name: Build Apk
|
||||||
run: flutter build apk --flavor dev --dart-define cameraPreviewAspectRatio=2/3 -t lib/main_dev.dart
|
run: flutter build apk --flavor dev --dart-define cameraPreviewAspectRatio=2/3 -t lib/main_dev.dart
|
||||||
|
|
Loading…
Reference in a new issue