blob: 1f497123674c81f3a8a36ffba7708e25b9ced2b3 [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@a18c333f3f14249953dab3e186e5e21bf3390f1d
with:
java-version: 11
distribution: temurin
# Set up Flutter.
- name: Clone Flutter repository with master channel
uses: subosito/flutter-action@1e6ee87cb840500837bcd50a667fb28815d8e310
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 }}