Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

feat(libtokyo): update #82

feat(libtokyo): update

feat(libtokyo): update #82

Workflow file for this run

name: Flutter
on: push
jobs:
build:
strategy:
matrix:
arch: [x64]
channel: [stable]
target: [linux, windows, macos, web, android]
os: [ubuntu-latest, windows-latest, macos-latest]
exclude:
- os: ubuntu-latest
target: windows
- os: ubuntu-latest
target: macos
- os: windows-latest
target: linux
- os: windows-latest
target: macos
- os: macos-latest
target: windows
- os: macos-latest
target: linux
- os: windows-latest
target: android
- os: macos-latest
target: android
runs-on: ${{ matrix.os }}
continue-on-error: true
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
cache: true
channel: ${{ matrix.channel }}
architecture: ${{ matrix.arch }}
- if: ${{ matrix.target == 'android' }}
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '11'
- if: ${{ matrix.target == 'linux' }}
name: Install host dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y ninja-build libgtk-3-dev
- run: flutter doctor
- name: Download dependencies
run: flutter pub get
- if: ${{ matrix.target != 'web' && matrix.target != 'android' }}
name: Build desktop
run: |
flutter config --enable-${{ matrix.target }}-desktop
cd packages/libtokyo_flutter/example
flutter build ${{ matrix.target }}
- if: ${{ matrix.target == 'android' }}
name: Build for Android
run: |
cd packages/libtokyo_flutter/example
flutter build apk
flutter build appbundle
- if: ${{ matrix.target == 'web' }}
name: Build for the web
run: |
cd packages/libtokyo_flutter/example
flutter build ${{ matrix.target }}