blob: 5a3f08fe581514a3a51958980d21d0debf09707a [file] [log] [blame]
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@v1
with:
java-version: 11
# Set up Flutter.
- name: Clone Flutter repository with master channel
uses: subosito/flutter-action@6c2e035f2692eeac890d854df95630c72673f130
with:
channel: master
- run: flutter config --enable-macos-desktop
- run: flutter doctor -v
# Checkout gallery code and get packages.
- name: Checkout gallery code
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
- run: flutter pub get -v
- run: flutter build ${{ matrix.target }}