Skip to content

Commit

Permalink
Merge pull request #4 from AppFlowy-IO/update_builder
Browse files Browse the repository at this point in the history
chore: update builders
  • Loading branch information
LucasXu0 authored Feb 2, 2024
2 parents 7b194a8 + 8c8aaba commit 578c068
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 10 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ on:
build_name:
description: "Build Version (it should match the version in pubspec.yaml)"
required: true
default: "0.4.3"
default: "0.4.5"
build_number:
description: 'Build Number (it should be unique)'
required: true
default: "2904300"
default: "2904500"
build_type:
type: choice
description: 'Build Type'
Expand Down Expand Up @@ -150,9 +150,8 @@ jobs:
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
run: |
cargo make --profile production-android appflowy-core-dev-android
sh scripts/code_generation/generate.sh
cargo make --profile production-android code_generation
cd appflowy_flutter
flutter pub get
if [ ${{github.event.inputs.build_type}} = "apk" ]; then
flutter build apk --build-name ${{ github.event.inputs.build_name }} --build-number ${{ github.event.inputs.build_number }} --split-per-abi --split-debug-info=./ --obfuscate
elif [ ${{github.event.inputs.build_type}} = "appbundle" ]; then
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ios.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
build_name:
description: "Build Version (it should match the version in pubspec.yaml)"
required: true
default: "0.4.3"
default: "0.4.5"
build_number:
description: "Build Number (it should be unique)"
required: true
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
build_name:
description: "Build Version (it should match the version in pubspec.yaml)"
required: true
default: "0.4.3"
default: "0.4.5"
server_type:
type: choice
description: 'Server Type (1 for local, 2 for cloud)'
Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
LINUX_PACKAGE_DEB_NAME: AppFlowy-${{ github.event.inputs.build_name }}-linux-x86_64.deb
LINUX_PACKAGE_RPM_NAME: AppFlowy-${{ github.event.inputs.build_name }}-linux-x86_64.rpm
LINUX_PACKAGE_TMP_RPM_NAME: AppFlowy-${{ github.event.inputs.build_name }}-2.x86_64.rpm
LINUX_PACKAGE_APPIMAGE_NAME: AppFlowy-${{ github.event.inputs.build_name }}-linux-x86_64
LINUX_PACKAGE_APPIMAGE_NAME: AppFlowy-${{ github.event.inputs.build_name }}-linux-x86_64.AppImage

steps:
# the following step is required to avoid running out of space
Expand Down Expand Up @@ -145,13 +145,17 @@ jobs:
name: ${{ env.LINUX_ZIP_NAME }}
path: ${{ env.LINUX_APP_RELEASE_PATH }}/${{ env.LINUX_ZIP_NAME }}

- name: Upload Linux package
working-directory: frontend
run: |
ls -a
- name: Upload AppImage
uses: actions/upload-artifact@v2
with:
name: ${{ env.LINUX_PACKAGE_APPIMAGE_NAME}}
path:
frontend/AppFlowy-${{ github.event.inputs.build_name }}-x86_64.AppImage
frontend/AppFlowy-${{ github.event.inputs.build_name }}-x86_64.AppImage.zsync

- name: Upload RPM
uses: actions/upload-artifact@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
build_name:
description: "Build Version (it should match the version in pubspec.yaml)"
required: true
default: "0.4.3"
default: "0.4.5"
arch:
type: choice
description: 'Build Architecture'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
build_name:
description: "Build Version (it should match the version in pubspec.yaml)"
required: true
default: "0.4.3"
default: "0.4.5"
server_type:
type: choice
description: 'Server Type (1 for local, 2 for cloud)'
Expand Down

0 comments on commit 578c068

Please sign in to comment.