-
Notifications
You must be signed in to change notification settings - Fork 5
add build workflow #921
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
add build workflow #921
Changes from all commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
de10afe
add build workflow
AlaaElattar 1cef585
fix workflow error
AlaaElattar 7cb091e
add ANDROID_NDK_VERSION
AlaaElattar 5d871de
build apk using build.sh
AlaaElattar 4b09a8c
WIP: debugging bug
AlaaElattar ba043d8
WIP: update non-existing directory
AlaaElattar e5bf2b7
WIP: update non-existing directory
AlaaElattar e850b3d
fix apk path and debug running build.sh
AlaaElattar a8630ac
update path
AlaaElattar bbe0ab7
update path
AlaaElattar c43859a
WIP: check that api directory exists
AlaaElattar 0fbd021
WIP: debugging
AlaaElattar c3e9f1d
fix working directory
AlaaElattar b7191a2
WIP: debugging where the apk is uploaded
AlaaElattar 9e04c45
make uploading path matches build.sh
AlaaElattar c9e0b39
change building script with debug
AlaaElattar e308713
build script with local environment
AlaaElattar 6d72870
update path of app-apk
AlaaElattar 74b7e52
update configs in buld.sh when runnign local
AlaaElattar 9f08c07
remove -v from build.sh
AlaaElattar 6627f9c
debug to see exit code of build script
AlaaElattar bb330f6
fix condition with debug and release modes
AlaaElattar bdc36cb
hanlde app_config_local issue
AlaaElattar 430d81c
check on flutter version
AlaaElattar 522595b
fix apk renaming
AlaaElattar 46a1933
WIP: debugging the directory of apk
AlaaElattar 87477bc
update artifact path
AlaaElattar 28d2aae
add absolute path
AlaaElattar 75d00bb
WIP: trying absolute path of github
AlaaElattar f837787
undo latest changes
AlaaElattar 3c728f1
add app/ at starting path of artifact
AlaaElattar 22a9abd
remove NDK version
AlaaElattar 8e844c8
remove space
AlaaElattar ab47c2c
undo changes in format_analyze.yml
AlaaElattar 69a3a5e
remove unnecessary space
AlaaElattar 1b569eb
comment creating app_config_local from build workflow
AlaaElattar c210396
remove listing files &&
AlaaElattar 50ddba4
remove listing changes && add -v to build.sh
AlaaElattar ba54eb5
update workflow handle failures
AlaaElattar 3c2b4e7
test failure of build script
AlaaElattar 45762fa
undo latest change
AlaaElattar cd6e731
Some fixes to build script (#934)
AhmedHanafy725 00eb0db
WIP: fix script init
AlaaElattar 7ea4dd0
comment shell: bash && set -e
AlaaElattar c011197
remove unused logic from script
AlaaElattar 283a89d
fix bug in compoleAndUpload
AlaaElattar bc6e2aa
remove commented code
AlaaElattar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,50 @@ | ||
| name: Build APK | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: | ||
| - development | ||
| push: | ||
| branches: | ||
| - development | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| defaults: | ||
| run: | ||
| working-directory: app | ||
| steps: | ||
| - name: Set up Repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Flutter | ||
| uses: subosito/flutter-action@v2 | ||
| with: | ||
| flutter-version: "3.27.2" | ||
| channel: "stable" | ||
|
|
||
| - name: Get dependencies | ||
| run: flutter pub get | ||
|
|
||
| - name: Ensure Build Script is Executable | ||
| run: chmod +x build.sh | ||
|
|
||
| - name: Run Build Script | ||
| # shell: bash | ||
| run: | | ||
| ./build.sh --init | ||
| ./build.sh --build --production --debug | ||
|
|
||
| - name: Verify APK Exists | ||
| run: | | ||
| if [ ! -f "build/app/outputs/flutter-apk/app-debug.apk" ]; then | ||
| echo "APK not found! Build failed." | ||
| exit 1 | ||
| fi | ||
|
|
||
| - name: Upload APK Artifact | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: app-apk | ||
| path: app/build/app/outputs/flutter-apk/app-debug.apk |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.