Group updates #36
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
macos: | |
name: macOS | |
runs-on: macos-latest | |
steps: | |
- name: 🛎 Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: 🐦 Setup Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
cache: true | |
- name: Enable macOS | |
run: flutter config --enable-macos-desktop | |
- name: 📦 Get dependencies | |
run: flutter pub get | |
- name: 🤖 Build dart files | |
run: dart run build_runner build | |
- name: 🛠️ Build | |
run: flutter build macos | |
windows: | |
name: Windows | |
runs-on: windows-latest | |
steps: | |
- name: 🛎 Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: 🐦 Setup Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
cache: true | |
- name: 🪟 Enable Windows | |
run: flutter config --enable-windows-desktop | |
- name: 📦 Get dependencies | |
run: flutter pub get | |
- name: 🤖 Build dart files | |
run: dart run build_runner build | |
- name: 🛠️ Build | |
run: flutter build windows | |
linux: | |
name: Linux | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🛎 Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: 📦 Install Linux build dependencies | |
run: | | |
sudo apt-get update -y | |
sudo apt-get install ninja-build libgtk-3-dev | |
- name: 🐦 Setup Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
cache: true | |
- name: 🐧 Enable Linux | |
run: flutter config --enable-linux-desktop | |
- name: 📦 Get dependencies | |
run: flutter pub get | |
- name: 🤖 Build dart files | |
run: dart run build_runner build | |
- name: 🛠️ Build | |
run: flutter build linux | |
android: | |
name: Android | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🛎 Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: 🐦 Setup Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
cache: true | |
- name: ☕ Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: '11' | |
- name: 📦 Get dependencies | |
run: flutter pub get | |
- name: 🤖 Build dart files | |
run: dart run build_runner build | |
- name: 🛠️ Build APK | |
run: flutter build apk | |
- name: 🛠️ Build App Bundle | |
run: flutter build appbundle | |
ios: | |
name: iOS | |
runs-on: macos-latest | |
steps: | |
- name: 🛎 Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: 🐦 Setup Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
cache: true | |
- name: 📦 Get dependencies | |
run: flutter pub get | |
- name: 🤖 Build dart files | |
run: dart run build_runner build | |
- name: 🛠️ Build | |
run: flutter build ios --no-codesign | |
# web: | |
# name: Web | |
# runs-on: ubuntu-latest | |
# | |
# steps: | |
# - name: 🛎 Checkout | |
# uses: actions/checkout@v4 | |
# with: | |
# ref: ${{ github.head_ref }} | |
# | |
# - name: 🐦 Setup Flutter | |
# uses: subosito/flutter-action@v2 | |
# with: | |
# channel: 'stable' | |
# cache: true | |
# | |
# - name: 📦 Get dependencies | |
# run: flutter pub get | |
# | |
# - name: 🤖 Build dart files | |
# run: dart run build_runner build -d | |
# | |
# - name: 🛠️ Build | |
# run: flutter build web |