Add Windows builds to CI

This commit is contained in:
Inex Code 2020-10-07 03:05:11 +03:00 committed by GitHub
parent faa113d4c1
commit 88e4a9c3ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -153,3 +153,35 @@ jobs:
with:
name: FurryChat-Linux.tar.gz
path: build/FurryChat-Linux.tar.gz
build-windows:
runs-on: windows-latest
needs: [analyze, build-android-apk, build-linux]
steps:
- uses: actions/checkout@v2
- name: Get choco deps
run: |
choco install git -y
choco install visualstudio2019community -y --package-parameters "--add Microsoft.VisualStudio.Product.BuildTools --includeRecommended --includeOptional --passive --locale en-US"
- name: Setup Flutter
uses: subosito/flutter-action@v1.3.2
with:
channel: dev
- name: Get Flutter deps
run: |
flutter config --enable-windows-desktop
flutter pub get
- name: Build release package
run: |
flutter build windows --release
- uses: actions/upload-artifact@v2
with:
name: FurryChat-Windows
path: build/windows/runner/Release/