-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add github actions for linux and mac
- Loading branch information
Showing
4 changed files
with
69 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ jobs: | |
- uses: actions/[email protected] | ||
with: | ||
# Artifact name | ||
name: release-android | ||
name: release-android.zip | ||
# 导出文件夹 | ||
path: build/app/outputs/flutter-apk/ | ||
# The desired behavior if no files are found using the provided path. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Release Linux | ||
on: | ||
# 手动触发 | ||
workflow_dispatch: | ||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
# 使用本项目 | ||
- uses: actions/checkout@v3 | ||
|
||
#设置flutter | ||
- uses: subosito/[email protected] | ||
with: | ||
# The Flutter version to make available on the path | ||
flutter-version: 3.13.9 | ||
# The Flutter build release channel | ||
channel: # optional, default is stable | ||
|
||
# Get flutter dependencies. | ||
- run: flutter pub get | ||
# Build apk.打包各架构版本 | ||
- run: flutter build linux --release | ||
# Upload generated apk to the artifacts. | ||
- uses: actions/[email protected] | ||
with: | ||
# Artifact name | ||
name: release-linux.tar.gz | ||
# 导出文件夹 | ||
path: build/linux/runner/Release/ | ||
# The desired behavior if no files are found using the provided path. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Release Mac | ||
on: | ||
# 手动触发 | ||
workflow_dispatch: | ||
jobs: | ||
build: | ||
name: Build | ||
runs-on: macos-latest | ||
steps: | ||
# 使用本项目 | ||
- uses: actions/checkout@v3 | ||
|
||
#设置flutter | ||
- uses: subosito/[email protected] | ||
with: | ||
# The Flutter version to make available on the path | ||
flutter-version: 3.13.9 | ||
# The Flutter build release channel | ||
channel: # optional, default is stable | ||
|
||
# Get flutter dependencies. | ||
- run: flutter pub get | ||
# Build apk.打包各架构版本 | ||
- run: flutter build macos --release | ||
# Upload generated apk to the artifacts. | ||
- uses: actions/[email protected] | ||
with: | ||
# Artifact name | ||
name: release-mac.tar.gz | ||
# 导出文件夹 | ||
path: build/mac/Build/Products/Release/ | ||
# The desired behavior if no files are found using the provided path. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ on: | |
jobs: | ||
build: | ||
name: Build | ||
runs-on: windows-latest | ||
runs-on: windows-2019 | ||
steps: | ||
# 使用本项目 | ||
- uses: actions/checkout@v3 | ||
|
@@ -37,7 +37,7 @@ jobs: | |
- uses: actions/[email protected] | ||
with: | ||
# Artifact name | ||
name: release-windows | ||
name: release-windows.zip | ||
# 导出文件夹 | ||
path: build/windows/runner/Release/ | ||
# The desired behavior if no files are found using the provided path. | ||
|