-
Notifications
You must be signed in to change notification settings - Fork 1
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 #42 from UbiqueInnovation/feature/gradle-task-update
Gradle Task Workflow update
- Loading branch information
Showing
7 changed files
with
29 additions
and
19 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
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 |
---|---|---|
|
@@ -36,9 +36,11 @@ on: | |
default: local | ||
type: string | ||
secrets: | ||
UB_ARTIFACTORY_URL_ANDROID: | ||
UB_ARTIFACTORY_URL: | ||
required: true | ||
UB_ARTIFACTORY_USERNAME: | ||
UB_ARTIFACTORY_REPO_ANDROID: | ||
required: true | ||
UB_ARTIFACTORY_USER: | ||
required: true | ||
UB_ARTIFACTORY_PASSWORD: | ||
required: true | ||
|
@@ -50,7 +52,7 @@ on: | |
|
||
jobs: | ||
task: | ||
runs-on: ['k8s-runner'] | ||
runs-on: [ 'k8s-runner' ] | ||
container: | ||
image: cimg/android:2024.04.1-ndk | ||
defaults: | ||
|
@@ -65,6 +67,7 @@ jobs: | |
- uses: actions/[email protected] | ||
- name: Install zstd | ||
run: sudo apt-get install -y zstd | ||
|
||
- name: Cache Gradle packages on self-hosted MinIO | ||
uses: tespkg/[email protected] | ||
if: false # Disabled for now to test if it's faster without it | ||
|
@@ -83,9 +86,16 @@ jobs: | |
key: cimg-android-${{ inputs.projectKey }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}-${{ inputs.task }} | ||
restore-keys: | | ||
cimg-android-${{ inputs.projectKey }}-gradle- | ||
- name: Run Gradle task | ||
uses: gradle/actions/[email protected] | ||
env: | ||
UB_ARTIFACTORY_URL_ANDROID: ${{ secrets.UB_ARTIFACTORY_URL_ANDROID }} | ||
UB_ARTIFACTORY_URL: ${{ secrets.UB_ARTIFACTORY_URL }} | ||
UB_ARTIFACTORY_REPO_ANDROID: ${{ secrets.UB_ARTIFACTORY_REPO_ANDROID }} | ||
UB_ARTIFACTORY_URL_ANDROID: '${{ secrets.UB_ARTIFACTORY_URL }}${{ secrets.UB_ARTIFACTORY_REPO_ANDROID }}' | ||
UB_ARTIFACTORY_USER: ${{ secrets.UB_ARTIFACTORY_USER }} | ||
UB_ARTIFACTORY_PASSWORD: ${{ secrets.UB_ARTIFACTORY_PASSWORD }} | ||
run: ./gradlew ${{ inputs.task }} ${{ inputs.gradleArgs }} | ||
with: | ||
cache-disabled: true | ||
build-root-directory: './' | ||
arguments: ${{ inputs.task }} ${{ inputs.gradleArgs }} |
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