Skip to content
This repository was archived by the owner on Jan 10, 2025. It is now read-only.

Commit d654ce4

Browse files
Merge pull request #1073 from android/gha_fixes
Bumps versions and fixes compilation issues
2 parents 0905d0e + 6ee7a18 commit d654ce4

File tree

160 files changed

+5259
-2887
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

160 files changed

+5259
-2887
lines changed

.github/ci-gradle.properties

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#
2+
# Copyright 2022 The Android Open Source Project
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
17+
org.gradle.daemon=false
18+
org.gradle.parallel=true
19+
org.gradle.jvmargs=-Xmx5120m
20+
org.gradle.workers.max=2
21+
22+
kotlin.incremental=false
23+
kotlin.compiler.execution.strategy=in-process
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: BasicRxJavaSample
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- '.github/workflows/BasicRxJavaSample.yaml'
9+
- 'BasicRxJavaSample/**'
10+
pull_request:
11+
paths:
12+
- '.github/workflows/BasicRxJavaSample.yaml'
13+
- 'BasicRxJavaSample/**'
14+
15+
env:
16+
SAMPLE_PATH: BasicRxJavaSample
17+
18+
jobs:
19+
build_and_test:
20+
runs-on: macOS-latest
21+
timeout-minutes: 30
22+
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v3
26+
27+
- name: Copy CI gradle.properties
28+
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
29+
30+
- name: Set up JDK 11
31+
uses: actions/setup-java@v3
32+
with:
33+
distribution: 'zulu'
34+
java-version: 11
35+
36+
- name: Generate cache key
37+
run: ./scripts/checksum.sh $SAMPLE_PATH checksum.txt
38+
39+
- uses: actions/cache@v3
40+
with:
41+
path: |
42+
~/.gradle/caches/modules-*
43+
~/.gradle/caches/jars-*
44+
~/.gradle/caches/build-cache-*
45+
key: gradle-${{ hashFiles('checksum.txt') }}
46+
47+
- name: Build project
48+
working-directory: ${{ env.SAMPLE_PATH }}
49+
run: ./gradlew assembleDebug lintDebug --stacktrace
50+
51+
- name: Run instrumentation tests
52+
uses: reactivecircus/android-emulator-runner@v2
53+
with:
54+
api-level: 26
55+
arch: x86
56+
disable-animations: true
57+
script: ./gradlew connectedCheck --stacktrace
58+
working-directory: ${{ env.SAMPLE_PATH }}
59+
60+
- name: Upload build outputs (APKs)
61+
uses: actions/upload-artifact@v3
62+
with:
63+
name: build-outputs-BasicRxJavaSample
64+
path: ${{ env.SAMPLE_PATH }}/app/build/outputs
65+
66+
- name: Upload build reports
67+
if: always()
68+
uses: actions/upload-artifact@v3
69+
with:
70+
name: build-reports-BasicRxJavaSample
71+
path: ${{ env.SAMPLE_PATH }}/app/build/reports
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: BasicRxJavaSampleKotlin
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- '.github/workflows/BasicRxJavaSampleKotlin.yaml'
9+
- 'BasicRxJavaSampleKotlin/**'
10+
pull_request:
11+
paths:
12+
- '.github/workflows/BasicRxJavaSampleKotlin.yaml'
13+
- 'BasicRxJavaSampleKotlin/**'
14+
15+
env:
16+
SAMPLE_PATH: BasicRxJavaSampleKotlin
17+
18+
jobs:
19+
build_and_test:
20+
runs-on: macOS-latest
21+
timeout-minutes: 30
22+
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v3
26+
27+
- name: Copy CI gradle.properties
28+
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
29+
30+
- name: Set up JDK 11
31+
uses: actions/setup-java@v3
32+
with:
33+
distribution: 'zulu'
34+
java-version: 11
35+
36+
- name: Generate cache key
37+
run: ./scripts/checksum.sh $SAMPLE_PATH checksum.txt
38+
39+
- uses: actions/cache@v3
40+
with:
41+
path: |
42+
~/.gradle/caches/modules-*
43+
~/.gradle/caches/jars-*
44+
~/.gradle/caches/build-cache-*
45+
key: gradle-${{ hashFiles('checksum.txt') }}
46+
47+
- name: Build project
48+
working-directory: ${{ env.SAMPLE_PATH }}
49+
run: ./gradlew assembleDebug lintDebug --stacktrace
50+
51+
- name: Run instrumentation tests
52+
uses: reactivecircus/android-emulator-runner@v2
53+
with:
54+
api-level: 26
55+
arch: x86
56+
disable-animations: true
57+
script: ./gradlew connectedCheck --stacktrace
58+
working-directory: ${{ env.SAMPLE_PATH }}
59+
60+
- name: Upload build outputs (APKs)
61+
uses: actions/upload-artifact@v3
62+
with:
63+
name: build-outputs-BasicRxJavaSampleKotlin
64+
path: ${{ env.SAMPLE_PATH }}/app/build/outputs
65+
66+
- name: Upload build reports
67+
if: always()
68+
uses: actions/upload-artifact@v3
69+
with:
70+
name: build-reports-BasicRxJavaSampleKotlin
71+
path: ${{ env.SAMPLE_PATH }}/app/build/reports

.github/workflows/BasicSample.yaml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: BasicSample
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- '.github/workflows/BasicSample.yaml'
9+
- 'BasicSample/**'
10+
pull_request:
11+
paths:
12+
- '.github/workflows/BasicSample.yaml'
13+
- 'BasicSample/**'
14+
15+
env:
16+
SAMPLE_PATH: BasicSample
17+
18+
jobs:
19+
build_and_test:
20+
runs-on: macOS-latest
21+
timeout-minutes: 30
22+
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v3
26+
27+
- name: Copy CI gradle.properties
28+
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
29+
30+
- name: Set up JDK 11
31+
uses: actions/setup-java@v3
32+
with:
33+
distribution: 'zulu'
34+
java-version: 11
35+
36+
- name: Generate cache key
37+
run: ./scripts/checksum.sh $SAMPLE_PATH checksum.txt
38+
39+
- uses: actions/cache@v3
40+
with:
41+
path: |
42+
~/.gradle/caches/modules-*
43+
~/.gradle/caches/jars-*
44+
~/.gradle/caches/build-cache-*
45+
key: gradle-${{ hashFiles('checksum.txt') }}
46+
47+
- name: Build project
48+
working-directory: ${{ env.SAMPLE_PATH }}
49+
run: ./gradlew assembleDebug lintDebug --stacktrace
50+
51+
- name: Run instrumentation tests
52+
uses: reactivecircus/android-emulator-runner@v2
53+
with:
54+
api-level: 26
55+
arch: x86
56+
disable-animations: true
57+
script: ./gradlew connectedCheck --stacktrace
58+
working-directory: ${{ env.SAMPLE_PATH }}
59+
60+
- name: Upload build outputs (APKs)
61+
uses: actions/upload-artifact@v3
62+
with:
63+
name: build-outputs-BasicSample
64+
path: ${{ env.SAMPLE_PATH }}/app/build/outputs
65+
66+
- name: Upload build reports
67+
if: always()
68+
uses: actions/upload-artifact@v3
69+
with:
70+
name: build-reports-BasicSample
71+
path: ${{ env.SAMPLE_PATH }}/app/build/reports
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: GithubBrowserSample
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- '.github/workflows/GithubBrowserSample.yaml'
9+
- 'GithubBrowserSample/**'
10+
pull_request:
11+
paths:
12+
- '.github/workflows/GithubBrowserSample.yaml'
13+
- 'GithubBrowserSample/**'
14+
15+
env:
16+
SAMPLE_PATH: GithubBrowserSample
17+
18+
jobs:
19+
build_and_test:
20+
runs-on: macOS-latest
21+
timeout-minutes: 30
22+
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v3
26+
27+
- name: Copy CI gradle.properties
28+
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
29+
30+
- name: Set up JDK 11
31+
uses: actions/setup-java@v3
32+
with:
33+
distribution: 'zulu'
34+
java-version: 11
35+
36+
- name: Generate cache key
37+
run: ./scripts/checksum.sh $SAMPLE_PATH checksum.txt
38+
39+
- uses: actions/cache@v3
40+
with:
41+
path: |
42+
~/.gradle/caches/modules-*
43+
~/.gradle/caches/jars-*
44+
~/.gradle/caches/build-cache-*
45+
key: gradle-${{ hashFiles('checksum.txt') }}
46+
47+
- name: Build project
48+
working-directory: ${{ env.SAMPLE_PATH }}
49+
run: ./gradlew assembleDebug lintDebug --stacktrace
50+
51+
- name: Run instrumentation tests
52+
uses: reactivecircus/android-emulator-runner@v2
53+
with:
54+
api-level: 26
55+
arch: x86
56+
disable-animations: true
57+
script: ./gradlew connectedCheck --stacktrace
58+
working-directory: ${{ env.SAMPLE_PATH }}
59+
60+
- name: Upload build outputs (APKs)
61+
uses: actions/upload-artifact@v3
62+
with:
63+
name: build-outputs-GithubBrowserSample
64+
path: ${{ env.SAMPLE_PATH }}/app/build/outputs
65+
66+
- name: Upload build reports
67+
if: always()
68+
uses: actions/upload-artifact@v3
69+
with:
70+
name: build-reports-GithubBrowserSample
71+
path: ${{ env.SAMPLE_PATH }}/app/build/reports
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: LiveDataSample
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- '.github/workflows/LiveDataSample.yaml'
9+
- 'LiveDataSample/**'
10+
pull_request:
11+
paths:
12+
- '.github/workflows/LiveDataSample.yaml'
13+
- 'LiveDataSample/**'
14+
15+
env:
16+
SAMPLE_PATH: LiveDataSample
17+
18+
jobs:
19+
build_and_test:
20+
runs-on: macOS-latest
21+
timeout-minutes: 30
22+
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v3
26+
27+
- name: Copy CI gradle.properties
28+
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
29+
30+
- name: Set up JDK 11
31+
uses: actions/setup-java@v3
32+
with:
33+
distribution: 'zulu'
34+
java-version: 11
35+
36+
- name: Generate cache key
37+
run: ./scripts/checksum.sh $SAMPLE_PATH checksum.txt
38+
39+
- uses: actions/cache@v3
40+
with:
41+
path: |
42+
~/.gradle/caches/modules-*
43+
~/.gradle/caches/jars-*
44+
~/.gradle/caches/build-cache-*
45+
key: gradle-${{ hashFiles('checksum.txt') }}
46+
47+
- name: Build project
48+
working-directory: ${{ env.SAMPLE_PATH }}
49+
run: ./gradlew assembleDebug lintDebug --stacktrace
50+
51+
- name: Run instrumentation tests
52+
uses: reactivecircus/android-emulator-runner@v2
53+
with:
54+
api-level: 26
55+
arch: x86
56+
disable-animations: true
57+
script: ./gradlew connectedCheck --stacktrace
58+
working-directory: ${{ env.SAMPLE_PATH }}
59+
60+
- name: Upload build outputs (APKs)
61+
uses: actions/upload-artifact@v3
62+
with:
63+
name: build-outputs-LiveDataSample
64+
path: ${{ env.SAMPLE_PATH }}/app/build/outputs
65+
66+
- name: Upload build reports
67+
if: always()
68+
uses: actions/upload-artifact@v3
69+
with:
70+
name: build-reports-LiveDataSample
71+
path: ${{ env.SAMPLE_PATH }}/app/build/reports

0 commit comments

Comments
 (0)