Skip to content

Commit

Permalink
add macos workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lifegpc committed Feb 6, 2024
1 parent 902daff commit 349e707
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
paths-ignore:
- '.github/workflows/ios.yml'
- '.github/workflows/linux.yml'
- '.github/workflows/macos.yml'
- '.github/workflows/web.yml'
- '.github/workflows/windows.yml'
- 'ios/**'
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
paths-ignore:
- '.github/workflows/android.yml'
- '.github/workflows/linux.yml'
- '.github/workflows/macos.yml'
- '.github/workflows/web.yml'
- '.github/workflows/windows.yml'
- 'android/**'
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
paths-ignore:
- '.github/workflows/android.yml'
- '.github/workflows/ios.yml'
- '.github/workflows/macos.yml'
- '.github/workflows/web.yml'
- '.github/workflows/windows.yml'
- 'android/**'
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: MacOS Build
on:
push:
branches: ["*"]
paths-ignore:
- '.github/workflows/ios.yml'
- '.github/workflows/linux.yml'
- '.github/workflows/macos.yml'
- '.github/workflows/web.yml'
- '.github/workflows/windows.yml'
- 'android/**'
- 'ios/**'
- 'linux/**'
- 'web/**'
- 'windows/**'
- '.gitignore'
- '.gitmodules'
- 'README.md'
- 'LICENSE'
jobs:
macos:
runs-on: macos-13
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup flutter
uses: subosito/flutter-action@v2
with:
channel: stable
- name: Build
run: flutter build macos --release
- name: Archive
run: |
cd build/macos/Build/Products/Release
zip -r macos.zip eh_downloader_flutter.app
- name: Upload
uses: actions/upload-artifact@v4
with:
name: macos
path: build/macos/Build/Products/Release/macos.zip
1 change: 1 addition & 0 deletions .github/workflows/web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- '.github/workflows/android.yml'
- '.github/workflows/ios.yml'
- '.github/workflows/linux.yml'
- '.github/workflows/macos.yml'
- '.github/workflows/windows.yml'
- 'android/**'
- 'ios/**'
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- '.github/workflows/android.yml'
- '.github/workflows/ios.yml'
- '.github/workflows/linux.yml'
- '.github/workflows/macos.yml'
- '.github/workflows/web.yml'
- 'android/**'
- 'ios/**'
Expand Down

0 comments on commit 349e707

Please sign in to comment.