Use flutter & java action for build workflow #91
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] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [macos-12, macos-14, ubuntu-latest, windows-latest] # macOS 12 is x86_64 and macOS 14 is ARM64 | |
flutter: ['3.7.12', '3.16.5', 'any'] # Flutter 3.7.12 is to maintain Breez support | |
java: ['17'] | |
runs-on: ${{ matrix.os }} | |
continue-on-error: ${{ matrix.channel == 'any' }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.java }} | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: ${{ matrix.flutter }} | |
- 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 |