chore: Android tooling upgrade #342
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: windows | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
env: | |
flutter_version: '3.10.6' | |
jobs: | |
test-build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup Flutter environment | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: ${{ env.flutter_version }} | |
- name: Install dependencies | |
run: flutter pub get | |
- name: Building generated source code | |
run: dart run build_runner build | |
- name: Analyze code | |
run: flutter analyze . | |
- name: Run tests | |
run: flutter test --no-pub -r expanded | |
- name: Configure Flutter for Windows | |
run: flutter config --enable-windows-desktop | |
- name: Build Windows application (debug) | |
run: flutter build windows --debug | |
- name: Archive debug build | |
if: github.ref_type == 'tag' | |
uses: actions/upload-artifact@v2 | |
with: | |
name: windows-bundle-debug | |
path: build/windows/runner/debug/ | |
- name: Build Windows application (release) | |
run: flutter build windows --release | |
- name: Archive release build | |
if: github.ref_type == 'tag' | |
uses: actions/upload-artifact@v2 | |
with: | |
name: windows-bundle-release | |
path: build/windows/runner/release/ |