Skip to content

Commit 411e0f1

Browse files
authored
Merge pull request #31 from android/mlykotom/add-ci
Add CI actions
2 parents bfac227 + 24b4daa commit 411e0f1

File tree

2 files changed

+70
-0
lines changed

2 files changed

+70
-0
lines changed
+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '.github/workflows/baseline-profiles.yaml'
7+
- 'baseline-profiles/**'
8+
branches:
9+
- main
10+
- end
11+
workflow_dispatch:
12+
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Set Up JDK
21+
uses: actions/setup-java@v4
22+
with:
23+
distribution: 'zulu' # See 'Supported distributions' for available options
24+
java-version: '17'
25+
cache: 'gradle'
26+
27+
- name: Setup Gradle
28+
uses: gradle/actions/setup-gradle@v4
29+
30+
- name: Setup Android SDK
31+
uses: android-actions/setup-android@v3
32+
33+
- name: Build project
34+
working-directory: baseline-profiles
35+
run: ./gradlew :app:assembleDebug

.github/workflows/benchmarking.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '.github/workflows/benchmarking.yaml'
7+
- 'benchmarking/**'
8+
branches:
9+
- main
10+
- end
11+
workflow_dispatch:
12+
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Set Up JDK
21+
uses: actions/setup-java@v4
22+
with:
23+
distribution: 'zulu' # See 'Supported distributions' for available options
24+
java-version: '17'
25+
cache: 'gradle'
26+
27+
- name: Setup Gradle
28+
uses: gradle/actions/setup-gradle@v4
29+
30+
- name: Setup Android SDK
31+
uses: android-actions/setup-android@v3
32+
33+
- name: Build project
34+
working-directory: benchmarking
35+
run: ./gradlew :app:assembleDebug

0 commit comments

Comments
 (0)