Skip to content

chore: upgrade Flutter #357

chore: upgrade Flutter

chore: upgrade Flutter #357

Workflow file for this run

name: windows
on:
push:
pull_request:
workflow_dispatch:
env:
flutter_version: '3.13.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/