Use flutter action and add Windows support #83
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-latest, ubuntu-latest, windows-latest] | |
flutter: ["3.7.12", "3.16.x"] # Flutter 3.7.12 is to maintain Breez support | |
untested: [false] | |
include: | |
- os: [macos-latest, ubuntu-latest, windows-latest] | |
flutter: "any" # Test against the latest version to find issues | |
untested: true | |
runs-on: ${{ matrix.os }} | |
continue-on-error: ${{ matrix.untested }} | |
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 |