diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a4c91da4c..22fa17ce7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,10 +34,6 @@ jobs: channel: stable cache: true - - name: Restore packages - run: | - flutter pub get - - name: Build APK run: | flutter build apk --target-platform android-arm64,android-arm @@ -112,10 +108,6 @@ jobs: channel: stable cache: true - - name: Restore packages - run: | - flutter pub get - - name: Build iOS run: | flutter build ios --release --no-codesign diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml new file mode 100644 index 000000000..be3cdd7dc --- /dev/null +++ b/.github/workflows/windows.yml @@ -0,0 +1,30 @@ +name: Windows +on: workflow_dispatch + +env: + flutter_version: '3.19.5' + +jobs: + build: + runs-on: windows-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Install Flutter + uses: subosito/flutter-action@v2 + with: + flutter-version: ${{ env.flutter_version }} + channel: stable + cache: true + + - name: Build Windows + run: | + flutter pub run build_runner build --delete-conflicting-outputs + flutter build windows + + - name: Upload building + uses: actions/upload-artifact@v3 + with: + name: Windows-x86_64.zip + path: build/windows/runner/Release