Skip to content

Use flutter action and add Windows support #84

Use flutter action and add Windows support

Use flutter action and add Windows support #84

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", "any"] # Flutter 3.7.12 is to maintain Breez support
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.os == 'windows-latest' || matrix.flutter == 'any' }}
steps:
- uses: actions/checkout@v4
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ matrix.flutter }}
channel: "stable"
- 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