Skip to content

Use flutter action and add Windows support #86

Use flutter action and add Windows support

Use flutter action and add Windows support #86

Workflow file for this run

name: build
on: [push]
jobs:
build:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
flutter: ['3.7.12', '3.16.x'] # Flutter 3.7.12 is to maintain Breez support
channel: ['stable']
include:
- os: macos-latest
flutter: 'any'
channel: 'beta'
- os: ubuntu-latest
flutter: 'any'
channel: 'beta'
- os: windows-latest
flutter: 'any'
channel: 'beta'
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.channel == 'beta' || matrix.os == 'windows-latest' }}
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ matrix.flutter }}
channel: ${{ matrix.channel }}
- name: Set up Java
run: echo 'JAVA_HOME=$JAVA_HOME_17_X64' >> '$GITHUB_ENV'
- if: matrix.os == 'macos-latest'
name: Install tap-protocol dependencies (Mac)
run: brew install cmake coreutils
- name: Set up Flutter
run: |
flutter config --no-analytics
flutter doctor -v
flutter pub get
- if: matrix.os == 'macos-latest'
name: Build iOS frameworks
run: |
cd example
flutter build ios-framework
- if: matrix.os == 'macos-latest'
name: Build iOS example
run: |
cd example
flutter build ios --no-codesign
- name: Build Android plugin
run: |
flutter build aar
- name: Build Android example
run: |
cd example
flutter build apk --debug
flutter build apk --profile
flutter build apk --release