Skip to content

Commit 64fe5c7

Browse files
committed
chore: Updated Build Desktop/Android App Actions
Refactored the Desktop App build action to: - Build for all platforms (Windows, Linux, MacOS). - Output paths to the built executables and installers. - Support debug and release builds. Refactored the Android App build action to: - Support debug and release builds. - Output paths to the built APKs. - Accept keystore and google-services.json as inputs for release builds. - Generate version numbers.
1 parent 67d85f2 commit 64fe5c7

File tree

3 files changed

+25
-17
lines changed

3 files changed

+25
-17
lines changed

Diff for: .github/actions/build-android-app/action.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,10 @@ runs:
118118
shell: bash
119119
run: |
120120
# Find Demo APK
121-
demo_apk=$(find . -path "**/build/outputs/apk/**/demo/**/*.apk" -print -quit)
121+
demo_apk=$(find . -path "**/build/outputs/apk/demo/debug/*.apk" -print -quit)
122122
123123
# Find Prod APK
124-
prod_apk=$(find . -path "**/build/outputs/apk/**/prod/**/*.apk" -print -quit)
124+
prod_apk=$(find . -path "**/build/outputs/apk/prod/release/*.apk" -print -quit)
125125
126126
# Output APK paths
127127
echo "demo_apk=${demo_apk}" >> $GITHUB_OUTPUT

Diff for: .github/actions/build-ios/action.yaml

+8-2
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,15 @@ runs:
2525
shell: bash
2626
run: bundle exec fastlane ios build_ios
2727

28-
- name: List Generated Files
28+
- name: List MifosPay iOS Files and Subdirectories
2929
shell: bash
30-
run: ls -la
30+
run: find mifospay-ios -type d -exec ls -la {} \;
31+
32+
- name: Install tree and List Directory
33+
shell: bash
34+
run: |
35+
apt-get install tree -y
36+
tree mifospay-ios -a
3137
3238
- name: Upload iOS Artifact
3339
uses: actions/upload-artifact@v4

Diff for: .github/actions/publish-desktop-app/action.yaml

+15-13
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ runs:
7575
windows_inst=$(find . -path "**/*.msi" | grep -E "windows|win" | head -n 1)
7676
7777
# Output Windows paths
78-
echo "windows_exec=${windows_exec}" >> $GITHUB_ENV
79-
echo "windows_inst=${windows_inst}" >> $GITHUB_ENV
78+
echo "windows_exec=${windows_exec}" >> $GITHUB_OUTPUT
79+
echo "windows_inst=${windows_inst}" >> $GITHUB_OUTPUT
8080
8181
- name: Collect Linux Paths
8282
if: matrix.os == 'ubuntu-latest'
@@ -87,7 +87,7 @@ runs:
8787
linux_app=$(find . -path "**/*.deb" | head -n 1)
8888
8989
# Output Linux paths
90-
echo "linux_app=${linux_app}" >> $GITHUB_ENV
90+
echo "linux_app=${linux_app}" >> $GITHUB_OUTPUT
9191
9292
- name: Collect MacOS Paths
9393
if: matrix.os == 'macos-latest'
@@ -98,30 +98,32 @@ runs:
9898
macos_app=$(find . -path "**/*.dmg" | head -n 1)
9999
100100
# Output MacOS paths
101-
echo "macos_app=${macos_app}" >> $GITHUB_ENV
101+
echo "macos_app=${macos_app}" >> $GITHUB_OUTPUT
102102
103-
# Upload Windows executables and installers
103+
# Upload Windows executables
104104
- name: Upload Windows Apps
105105
if: matrix.os == 'windows-latest'
106106
uses: actions/upload-artifact@v4
107107
with:
108-
name: Windows-Apps
109-
path: |
110-
**/*.exe
111-
**/*.msi
108+
path: ${{ steps.collect-windows.outputs.windows_exec }}
109+
110+
# Upload Windows installers
111+
- name: Upload Windows Apps
112+
if: matrix.os == 'windows-latest'
113+
uses: actions/upload-artifact@v4
114+
with:
115+
path: ${{ steps.collect-windows.outputs.windows_inst }}
112116

113117
# Upload Linux package
114118
- name: Upload Linux App
115119
if: matrix.os == 'ubuntu-latest'
116120
uses: actions/upload-artifact@v4
117121
with:
118-
name: Linux-App
119-
path: '**/*.deb'
122+
path: ${{ steps.collect-linux.outputs.linux_app }}
120123

121124
# Upload MacOS package
122125
- name: Upload MacOS App
123126
if: matrix.os == 'macos-latest'
124127
uses: actions/upload-artifact@v4
125128
with:
126-
name: MacOS-App
127-
path: '**/*.dmg'
129+
path: ${{ steps.collect-macos.outputs.macos_app }}

0 commit comments

Comments
 (0)