Skip to content

Commit 27b696d

Browse files
authored
Merge pull request #17 from android/workflows
Create new workflows to compile all the samples
2 parents d18859f + c58be2e commit 27b696d

File tree

2 files changed

+64
-0
lines changed

2 files changed

+64
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Build Adaptive Jetstream
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [ main ]
7+
pull_request:
8+
branches: [ main ]
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
16+
- name: Set Up JDK
17+
uses: actions/setup-java@v3
18+
with:
19+
distribution: 'zulu'
20+
java-version: '17'
21+
cache: 'gradle'
22+
23+
- name: Setup Gradle
24+
uses: gradle/actions/setup-gradle@v4
25+
26+
- name: Make gradlew executable
27+
run: chmod +x ./gradlew
28+
working-directory: ./AdaptiveJetStream
29+
30+
- name: Build feed-compose app
31+
working-directory: ./AdaptiveJetStream
32+
run: ./gradlew :jetstream:assembleDebug
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Build NavigationSuiteScaffold sample
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [ main ]
7+
pull_request:
8+
branches: [ main ]
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
16+
- name: Set Up JDK
17+
uses: actions/setup-java@v3
18+
with:
19+
distribution: 'zulu'
20+
java-version: '17'
21+
cache: 'gradle'
22+
23+
- name: Setup Gradle
24+
uses: gradle/actions/setup-gradle@v4
25+
26+
- name: Make gradlew executable
27+
run: chmod +x ./gradlew
28+
working-directory: ./AdaptiveNavigationSample
29+
30+
- name: Build feed-compose app
31+
working-directory: ./AdaptiveNavigationSample
32+
run: ./gradlew :app:assembleDebug

0 commit comments

Comments
 (0)