From 88e4a9c3ae4c15a6fa1dc1ce9671bfc51531bb0e Mon Sep 17 00:00:00 2001 From: Inex Code Date: Wed, 7 Oct 2020 03:05:11 +0300 Subject: [PATCH] Add Windows builds to CI --- .github/workflows/deploy.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 08c752a..ee40ed0 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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/