Skip to content

Merge pull request #3 from phanatagama/development #6

Merge pull request #3 from phanatagama/development

Merge pull request #3 from phanatagama/development #6

Workflow file for this run

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]
steps:
- name: Set up JDK 11
uses: actions/setup-java@cd89f46ac9d01407894225f350157564c9c7cee2 # v3.12.0
with:
java-version: 11
distribution: temurin
# Set up Flutter.
- name: Clone Flutter repository with master channel
uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa
with:
channel: master
- run: flutter doctor -v
# Checkout gallery code and get packages.
- name: Checkout gallery code
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- run: flutter pub get
- run: flutter build ${{ matrix.target }}
# Upload generated apk to the artifacts.
- uses: actions/upload-artifact@v2
with:
name: debug-apk
path: build/app/outputs/apk/debug/app-debug.apk