Skip to content

🐛 [iOS] Fix the behavior of obtaining Live Photos #514

🐛 [iOS] Fix the behavior of obtaining Live Photos

🐛 [iOS] Fix the behavior of obtaining Live Photos #514

Workflow file for this run

name: Runnable (stable)
on:
push:
branches:
- main
paths-ignore:
- "**.md"
pull_request:
branches:
- main
paths-ignore:
- "**.md"
jobs:
analyze:
name: Analyze on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: '17'
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
cache: true
- name: Log Dart/Flutter versions
run: |
dart --version
flutter --version
- run: flutter doctor -v
- name: Prepare dependencies
run: flutter pub get
- name: Check Dart code formatting
run: dart format . -o none --set-exit-if-changed
- name: Analyze lib
run: flutter analyze lib
- name: Analyze example
run: flutter analyze example
# - name: Analyze example_ohos
# run: flutter analyze example_ohos
- name: Run tests
run: flutter test
- name: Generate docs
run: |
dart pub global activate dartdoc
dart pub global run dartdoc .
publishable:
if: github.repository == 'fluttercandies/flutter_photo_manager'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: '17'
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
cache: true
- run: flutter doctor -v
- name: Prepare dependencies
run: flutter pub get
- name: Copy before dry run
run: |
chmod +x ./copy_on_publish.sh
./copy_on_publish.sh
- name: Publish dry run
uses: k-paxian/dart-package-publisher@master
with:
credentialJson: 'MockCredentialJson'
accessToken: 'MockAccessToken'
refreshToken: 'MockRefreshToken'
flutter: true
dryRunOnly: true
test_android:
needs: analyze
name: Test Android build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
cache: true
- run: flutter doctor -v
- run: flutter pub get
- run: cd example; flutter build apk --debug
test_android_on_windows:
needs: analyze
name: Test Android build on windows
runs-on: windows-latest
strategy:
matrix:
os: [ ubuntu-latest ]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
cache: true
- run: flutter doctor -v
- run: flutter pub get
- run: cd example; flutter build apk --debug
test_android_on_macos:
needs: analyze
name: Test Android build on macOS
runs-on: macos-latest
strategy:
matrix:
os: [ ubuntu-latest ]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
cache: true
- run: flutter doctor -v
- run: flutter pub get
- run: cd example; flutter build apk --debug
test_darwin:
needs: analyze
name: Test Darwin build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ macos-latest ]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: '17'
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
architecture: x64
cache: true
- run: flutter doctor -v
- run: flutter pub get
- run: cd example; flutter build ios --no-codesign
- run: cd example; flutter build macos --debug