Skip to content

Instantly share code, notes, and snippets.

@tianhaoz95
Created October 17, 2019 06:29
Show Gist options
  • Save tianhaoz95/ca61776aeb308545af38e57c24aba7e1 to your computer and use it in GitHub Desktop.
Save tianhaoz95/ca61776aeb308545af38e57c24aba7e1 to your computer and use it in GitHub Desktop.
Flutter merge checks
name: Merge
on:
pull_request:
branches:
- "master"
jobs:
build-doc:
name: Build docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install deps and compile docs
run: |
cd ./website
npm install
npm run build
build-web:
name: Build Web app
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- uses: subosito/flutter-action@v1
with:
flutter-version: '1.9.1+hotfix.4'
channel: 'stable'
- run: flutter channel master && flutter upgrade
- run: flutter config --enable-web
- run: cd ./iwfpapp && flutter create .
- run: cd ./iwfpapp && flutter build web
build-android:
name: Build Android apk
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- uses: subosito/flutter-action@v1
with:
flutter-version: '1.9.1+hotfix.4'
channel: 'stable'
- run: cd ./iwfpapp && flutter build apk --release
build-ios:
name: Build IOS ipa
runs-on: macOS-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- uses: subosito/flutter-action@v1
with:
flutter-version: '1.9.1+hotfix.4'
channel: 'stable'
- run: flutter channel master && flutter upgrade
- run: cd ./iwfpapp && flutter build ios --release --no-codesign
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment