| name: Builds |
| on: |
| push: |
| branches: |
| - main |
| pull_request: |
| |
| # Declare default permissions as read only. |
| permissions: read-all |
| |
| jobs: |
| build: |
| name: Build ${{ matrix.target }} |
| runs-on: macos-latest |
| strategy: |
| fail-fast: false |
| matrix: |
| target: ["apk --debug", "appbundle --debug", "ios --no-codesign", macos, web] |
| steps: |
| - name: Set up JDK 11 |
| uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4.0.0 |
| with: |
| java-version: 11 |
| distribution: temurin |
| # Set up Flutter. |
| - name: Clone Flutter repository with master channel |
| uses: subosito/flutter-action@2783a3f08e1baf891508463f8c6653c258246225 |
| with: |
| channel: master |
| - run: flutter doctor -v |
| |
| # Checkout gallery code and get packages. |
| - name: Checkout gallery code |
| uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 |
| - run: flutter pub get |
| |
| - run: flutter build ${{ matrix.target }} |