bullseye/.github/workflows/flutter.yml

71 lines
1.7 KiB
YAML
Raw Normal View History

2021-05-29 12:13:44 -04:00
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Flutter
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v1
with:
channel: "stable"
- run: flutter pub get
2021-05-29 12:20:06 -04:00
- run: flutter config --enable-linux-desktop
2021-05-29 12:13:44 -04:00
- run: flutter build linux
android:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: "12.x"
- uses: subosito/flutter-action@v1
with:
channel: "stable"
- run: flutter pub get
- run: flutter build apk
- run: flutter build appbundle
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v1
with:
channel: "stable"
- run: flutter pub get
2021-05-29 12:20:06 -04:00
- run: flutter config --enable-macos-desktop
2021-05-29 12:13:44 -04:00
- run: flutter build macos --release --no-codesign
ios:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v1
with:
channel: "stable"
- run: flutter pub get
- run: flutter build ios --release --no-codesign
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: subosito/flutter-action@v1
with:
channel: "stable"
- run: flutter pub get
2021-05-29 12:20:06 -04:00
- run: flutter config --enable-windows-desktop
2021-05-29 12:13:44 -04:00
- run: flutter build windows