v1.1.0 #26
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 Flutter Windows | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
- name: Setup Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '3.24.3' | |
- name: Install dependencies | |
run: flutter pub get | |
- name: Enable Windows desktop support | |
run: | | |
flutter config --enable-windows-desktop | |
flutter create . | |
- name: Build Windows app | |
run: flutter build windows | |
- name: Upload Windows build | |
uses: actions/upload-artifact@v3 | |
with: | |
name: windows-build | |
path: build/windows/x64/runner/Release/ |