-
-
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.
Merge pull request #4 from frogobox/develop/update-sdk-version
DEVELOP :: Update SDK Version
- Loading branch information
Showing
8 changed files
with
51 additions
and
54 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 |
---|---|---|
@@ -1,55 +1,48 @@ | ||
name: Android CI | ||
|
||
env: | ||
# The name of the main module repository | ||
main_project_module: app | ||
|
||
# The name of the Play Store | ||
playstore_name: Frogobox ID | ||
|
||
on: | ||
# workflow_dispatch - for clicking | ||
# Triggers the workflow on push or pull request events but only for default and protected branches | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
workflow_dispatch: | ||
# The workflow will be dispatched to the default queue | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set Up JDK 11 | ||
uses: actions/setup-java@v1 | ||
# Set Current Date As Env Variable | ||
- name: Set current date as env variable | ||
run: echo "date_today=$(date +'%Y-%m-%d')" >> $GITHUB_ENV | ||
|
||
# Set Repository Name As Env Variable | ||
- name: Set repository name as env variable | ||
run: echo "repository_name=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV | ||
|
||
- name: Set Up JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 11 | ||
distribution: 'zulu' # See 'Supported distributions' for available options | ||
java-version: '17' | ||
cache: 'gradle' | ||
|
||
- name: Change wrapper permissions | ||
run: chmod +x ./gradlew | ||
|
||
- name: Run tests | ||
run: ./gradlew test | ||
|
||
# Run Build Project | ||
- name: Build project | ||
run: ./gradlew build | ||
|
||
# Create APK Debug | ||
- name: Build apk debug project (APK) | ||
run: ./gradlew assembleDebug | ||
|
||
# Create APK Release | ||
- name: Build apk release project (APK) | ||
run: ./gradlew assemble | ||
|
||
# Create Bundle AAB Release | ||
# Noted for main module build [module-name]:bundleRelease | ||
- name: Build app bundle release (AAB) | ||
run: ./gradlew app:bundleRelease | ||
|
||
# Upload Artifact Build | ||
# Noted For Output [module-name]/build/outputs/ | ||
- name: Upload build APK / AAB | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: App bundle(s) and APK(s) generated | ||
path: app/build/outputs/ | ||
- name: Build gradle project | ||
run: ./gradlew build |
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
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
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
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
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
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
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 |
---|---|---|
@@ -1,2 +1,5 @@ | ||
jdk: | ||
- openjdk11 | ||
- openjdk17 | ||
before_install: | ||
- sdk install java 17.0.1-open | ||
- sdk use java 17.0.1-open |