Skip to content

Commit 7c7c616

Browse files
committed
add pulling genai-common to CI for vertexai
1 parent a41af7d commit 7c7c616

File tree

5 files changed

+42
-1
lines changed

5 files changed

+42
-1
lines changed

.github/workflows/ci_tests.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ jobs:
6161
run: |
6262
git clone https://github.com/google-gemini/generative-ai-android.git
6363
cd generative-ai-android
64-
./gradlew :common:updateVersion common:publishToMavenLocal
64+
./gradlew :common:updateVersion
65+
./gradlew :common:publishToMavenLocal
6566
cd ..
6667
6768
- name: Clone mock responses
@@ -133,6 +134,15 @@ jobs:
133134
distribution: temurin
134135
cache: gradle
135136

137+
- name: Pull genai-common
138+
if: matrix.module == ':firebase-vertexai'
139+
run: |
140+
git clone https://github.com/google-gemini/generative-ai-android.git
141+
cd generative-ai-android
142+
./gradlew :common:updateversion
143+
./gradlew :common:publishToMavenLocal
144+
cd ..
145+
136146
- name: Add google-services.json
137147
env:
138148
INTEG_TESTS_GOOGLE_SERVICES: ${{ secrets.INTEG_TESTS_GOOGLE_SERVICES }}

.github/workflows/diff-javadoc.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@ jobs:
2525
distribution: temurin
2626
cache: gradle
2727

28+
- name: Pull genai-common
29+
run: |
30+
git clone https://github.com/google-gemini/generative-ai-android.git
31+
cd generative-ai-android
32+
./gradlew :common:updateversion
33+
./gradlew :common:publishToMavenLocal
34+
cd ..
35+
2836
- name: Generate docs for PR branch
2937
run: ./gradlew kotlindoc
3038

.github/workflows/health-metrics.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,13 @@ jobs:
6969
java-version: 17
7070
distribution: temurin
7171
cache: gradle
72+
- name: Pull genai-common
73+
run: |
74+
git clone https://github.com/google-gemini/generative-ai-android.git
75+
cd generative-ai-android
76+
./gradlew :common:updateversion
77+
./gradlew :common:publishToMavenLocal
78+
cd ..
7279
- name: Set up Python 3.10
7380
uses: actions/setup-python@v4
7481
with:
@@ -105,6 +112,13 @@ jobs:
105112
java-version: 17
106113
distribution: temurin
107114
cache: gradle
115+
- name: Pull genai-common
116+
run: |
117+
git clone https://github.com/google-gemini/generative-ai-android.git
118+
cd generative-ai-android
119+
./gradlew :common:updateversion
120+
./gradlew :common:publishToMavenLocal
121+
cd ..
108122
- name: Set up Python 3.10
109123
uses: actions/setup-python@v4
110124
with:

.github/workflows/smoke-tests.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ jobs:
2222
credentials_json: ${{ secrets.GCP_SERVICE_ACCOUNT }}
2323
- uses: google-github-actions/setup-gcloud@v2
2424

25+
- name: Pull genai-common
26+
run: |
27+
git clone https://github.com/google-gemini/generative-ai-android.git
28+
cd generative-ai-android
29+
./gradlew :common:updateversion
30+
./gradlew :common:publishToMavenLocal
31+
cd ..
32+
2533
# TODO(yifany): make it a fireci plugin and remove the separately distributed jar file
2634
- name: Download smoke tests runner
2735
run: |

health-metrics/apk-size/app/configure.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515

1616
repositories {
17+
mavenLocal()
1718
maven {
1819
url '../../../build/m2repository/'
1920
}

0 commit comments

Comments
 (0)