Skip to content

Commit

Permalink
[workflow] Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
liplum committed Apr 14, 2024
1 parent e2d1d5b commit 89fc8b2
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 8 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 89fc8b2

Please sign in to comment.