Skip to content

Commit

Permalink
Update build/release actions to produce split ABI apks
Browse files Browse the repository at this point in the history
  • Loading branch information
steel97 committed Mar 18, 2024
1 parent 0e47dbe commit 3852c82
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 3 deletions.
34 changes: 33 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -228,11 +228,13 @@ jobs:
run: |
cd "${{ env.build_dir }}"
submodules/flutter/bin/flutter build apk --release --no-tree-shake-icons
submodules/flutter/bin/flutter build apk --release --no-tree-shake-icons --split-per-abi
- name: Build executable (debug)
if: ${{ steps.key-check.outputs.available != 'true' }}
run: |
cd "${{ env.build_dir }}"
submodules/flutter/bin/flutter build apk --debug
submodules/flutter/bin/flutter build apk --debug --no-tree-shake-icons --split-per-abi
- name: Cleanup
if: always()
run: rm ${{ env.build_dir }}/android/key.properties
Expand All @@ -241,8 +243,38 @@ jobs:
with:
name: ${{ env.build_package_name }}
path: ${{ env.build_dir }}/build/app/outputs/flutter-apk/app-release.apk
- uses: actions/upload-artifact@v4
if: ${{ steps.key-check.outputs.available == 'true' }}
with:
name: ${{ env.build_package_name }}-armeabi-v7a
path: ${{ env.build_dir }}/build/app/outputs/flutter-apk/app-armeabi-v7a-release.apk
- uses: actions/upload-artifact@v4
if: ${{ steps.key-check.outputs.available == 'true' }}
with:
name: ${{ env.build_package_name }}-arm64-v8a
path: ${{ env.build_dir }}/build/app/outputs/flutter-apk/app-arm64-v8a-release.apk
- uses: actions/upload-artifact@v4
if: ${{ steps.key-check.outputs.available == 'true' }}
with:
name: ${{ env.build_package_name }}-x86_64
path: ${{ env.build_dir }}/build/app/outputs/flutter-apk/app-x86_64-release.apk
- uses: actions/upload-artifact@v4
if: ${{ steps.key-check.outputs.available != 'true' }}
with:
name: ${{ env.build_package_name }}
path: ${{ env.build_dir }}/build/app/outputs/flutter-apk/app-debug.apk
path: ${{ env.build_dir }}/build/app/outputs/flutter-apk/app-debug.apk
- uses: actions/upload-artifact@v4
if: ${{ steps.key-check.outputs.available != 'true' }}
with:
name: ${{ env.build_package_name }}-armeabi-v7a
path: ${{ env.build_dir }}/build/app/outputs/flutter-apk/app-armeabi-v7a-debug.apk
- uses: actions/upload-artifact@v4
if: ${{ steps.key-check.outputs.available != 'true' }}
with:
name: ${{ env.build_package_name }}-arm64-v8a
path: ${{ env.build_dir }}/build/app/outputs/flutter-apk/app-arm64-v8a-debug.apk
- uses: actions/upload-artifact@v4
if: ${{ steps.key-check.outputs.available != 'true' }}
with:
name: ${{ env.build_package_name }}-x86_64
path: ${{ env.build_dir }}/build/app/outputs/flutter-apk/app-x86_64-debug.apk
23 changes: 22 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,34 @@ jobs:
path: './veil-wallet ios'
- run: |
mv './veil-wallet ios/app-release.ipa' './veil-wallet (ios).ipa'
# 5) artifact (veil-wallet android)
# 5) artifact (veil-wallet android)
- uses: actions/download-artifact@v4
with:
name: veil-wallet android
path: './veil-wallet android'
- run: |
mv './veil-wallet android/app-release.apk' './veil-wallet (android).apk'
# 6) artifact (veil-wallet android armeabi-v7a)
- uses: actions/download-artifact@v4
with:
name: veil-wallet android-armeabi-v7a
path: './veil-wallet android'
- run: |
mv './veil-wallet android/app-armeabi-v7a-release.apk' './veil-wallet (android-armeabi-v7a).apk'
# 7) artifact (veil-wallet android arm64-v8a)
- uses: actions/download-artifact@v4
with:
name: veil-wallet android-arm64-v8a
path: './veil-wallet android'
- run: |
mv './veil-wallet android/app-arm64-v8a-release.apk' './veil-wallet (android-arm64-v8a).apk'
# 8) artifact (veil-wallet android x86_64)
- uses: actions/download-artifact@v4
with:
name: veil-wallet android-x86_64
path: './veil-wallet android'
- run: |
mv './veil-wallet android/app-x86_64-release.apk' './veil-wallet (android-x86_64).apk'
# upload release
- uses: ncipollo/release-action@v1
with:
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ flutter build appbundle --release
# release build in apk format
flutter build apk --release
# release build in apk format (split ABIs)
flutter build apk --release --split-per-abi
```

## Developing
Expand Down
2 changes: 2 additions & 0 deletions metadata/en-US/changelogs/20.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- added ability to change conversion API url
- added ability to set conversion rate manually
2 changes: 2 additions & 0 deletions metadata/ru-RU/changelogs/20.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- добавлена возможность установить адрес API конвертации
- добавлена возможность установить курс конвертации
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: veil_wallet
description: Veil light wallet made with flutter
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.13+19
version: 1.0.14+20

environment:
sdk: '>=3.3.0 <4.0.0'
Expand Down

0 comments on commit 3852c82

Please sign in to comment.