chore: added screenshot workflows #1263
Workflow file for this run
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: Build | |
| on: | |
| pull_request: | |
| branches: ["flutter"] | |
| env: | |
| ANDROID_EMULATOR_API: 34 | |
| ANDROID_EMULATOR_ARCH: x86_64 | |
| IPHONE_DEVICE_MODEL: iPhone 16 | |
| IPAD_DEVICE_MODEL: iPad (10th generation) | |
| jobs: | |
| common: | |
| name: Common Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Common Workflow | |
| uses: ./.github/actions/common | |
| - name: Save PR number | |
| run: | | |
| mkdir -p ./pr | |
| echo ${{ github.event.number }} > ./pr/NR | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: pr | |
| path: pr/ | |
| android: | |
| name: Android Flutter Build | |
| needs: common | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Android Workflow | |
| uses: ./.github/actions/android | |
| ios: | |
| name: iOS Flutter Build | |
| needs: common | |
| runs-on: macos-latest | |
| steps: | |
| - name: Set up Xcode | |
| uses: maxim-lobanov/[email protected] | |
| with: | |
| xcode-version: latest-stable | |
| - uses: actions/checkout@v4 | |
| - name: iOS Workflow | |
| uses: ./.github/actions/ios | |
| screenshots-android: | |
| name: Screenshots (Android) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Android Screenshot Workflow | |
| uses: ./.github/actions/screenshot-android | |
| with: | |
| ANDROID_EMULATOR_API: ${{ env.ANDROID_EMULATOR_API }} | |
| ANDROID_EMULATOR_ARCH: ${{ env.ANDROID_EMULATOR_ARCH }} | |
| screenshots-ios: | |
| name: Screenshots (iOS) | |
| runs-on: macos-latest | |
| steps: | |
| - name: Set up Xcode | |
| uses: maxim-lobanov/[email protected] | |
| with: | |
| xcode-version: latest-stable | |
| - uses: actions/checkout@v4 | |
| - name: List available simulators | |
| run: xcrun simctl list devices | |
| - name: iOS Screenshot Workflow | |
| uses: ./.github/actions/screenshot-ios | |
| with: | |
| IPHONE_DEVICE_MODEL: ${{ env.IPHONE_DEVICE_MODEL }} | |
| IPAD_DEVICE_MODEL: ${{ env.IPAD_DEVICE_MODEL }} |