Skip to content

Commit 6b77bb0

Browse files
authored
Merge pull request #5 from cartland/new_build_workflow
Add CI workflows for CanonicalLayouts samples
2 parents d8bce64 + 3af0bff commit 6b77bb0

8 files changed

+264
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Workflow name
2+
name: Build feed-compose
3+
4+
on:
5+
workflow_dispatch:
6+
push:
7+
branches: [ main ]
8+
pull_request:
9+
branches: [ main ]
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
17+
- name: Set Up JDK
18+
uses: actions/setup-java@v3
19+
with:
20+
distribution: 'zulu'
21+
java-version: '17'
22+
cache: 'gradle'
23+
24+
- name: Setup Gradle
25+
uses: gradle/actions/setup-gradle@v4
26+
27+
- name: Make gradlew executable
28+
run: chmod +x ./gradlew
29+
working-directory: ./adaptive-apps-samples/CanonicalLayouts/feed-compose
30+
31+
- name: Build feed-compose app
32+
working-directory: ./adaptive-apps-samples/CanonicalLayouts/feed-compose
33+
run: ./gradlew :app:assembleDebug
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Workflow name
2+
name: Build feed-view
3+
4+
on:
5+
workflow_dispatch:
6+
push:
7+
branches: [ main ]
8+
pull_request:
9+
branches: [ main ]
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
17+
- name: Set Up JDK
18+
uses: actions/setup-java@v3
19+
with:
20+
distribution: 'zulu'
21+
java-version: '17'
22+
cache: 'gradle'
23+
24+
- name: Setup Gradle
25+
uses: gradle/actions/setup-gradle@v4
26+
27+
- name: Make gradlew executable
28+
run: chmod +x ./gradlew
29+
working-directory: ./adaptive-apps-samples/CanonicalLayouts/feed-view
30+
31+
- name: Build feed-view app
32+
working-directory: ./adaptive-apps-samples/CanonicalLayouts/feed-view
33+
run: ./gradlew :app:assembleDebug
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Workflow name
2+
name: Build list-detail-activity-embedding
3+
4+
on:
5+
workflow_dispatch:
6+
push:
7+
branches: [ main ]
8+
pull_request:
9+
branches: [ main ]
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
17+
- name: Set Up JDK
18+
uses: actions/setup-java@v3
19+
with:
20+
distribution: 'zulu'
21+
java-version: '17'
22+
cache: 'gradle'
23+
24+
- name: Setup Gradle
25+
uses: gradle/actions/setup-gradle@v4
26+
27+
- name: Make gradlew executable
28+
run: chmod +x ./gradlew
29+
working-directory: ./adaptive-apps-samples/CanonicalLayouts/list-detail-activity-embedding
30+
31+
- name: Build list-detail-activity-embedding app
32+
working-directory: ./adaptive-apps-samples/CanonicalLayouts/list-detail-activity-embedding
33+
run: ./gradlew :app:assembleDebug
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Workflow name
2+
name: Build list-detail-compose
3+
4+
on:
5+
workflow_dispatch:
6+
push:
7+
branches: [ main ]
8+
pull_request:
9+
branches: [ main ]
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
17+
- name: Set Up JDK
18+
uses: actions/setup-java@v3
19+
with:
20+
distribution: 'zulu'
21+
java-version: '17'
22+
cache: 'gradle'
23+
24+
- name: Setup Gradle
25+
uses: gradle/actions/setup-gradle@v4
26+
27+
- name: Make gradlew executable
28+
run: chmod +x ./gradlew
29+
working-directory: ./adaptive-apps-samples/CanonicalLayouts/list-detail-compose
30+
31+
- name: Build list-detail-compose app
32+
working-directory: ./adaptive-apps-samples/CanonicalLayouts/list-detail-compose
33+
run: ./gradlew :app:assembleDebug
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Workflow name
2+
name: Build list-detail-sliding-pane
3+
4+
on:
5+
workflow_dispatch:
6+
push:
7+
branches: [ main ]
8+
pull_request:
9+
branches: [ main ]
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
17+
- name: Set Up JDK
18+
uses: actions/setup-java@v3
19+
with:
20+
distribution: 'zulu'
21+
java-version: '17'
22+
cache: 'gradle'
23+
24+
- name: Setup Gradle
25+
uses: gradle/actions/setup-gradle@v4
26+
27+
- name: Make gradlew executable
28+
run: chmod +x ./gradlew
29+
working-directory: ./adaptive-apps-samples/CanonicalLayouts/list-detail-sliding-pane
30+
31+
- name: Build list-detail-sliding-pane app
32+
working-directory: ./adaptive-apps-samples/CanonicalLayouts/list-detail-sliding-pane
33+
run: ./gradlew :app:assembleDebug
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Workflow name
2+
name: Build supporting-pane-compose
3+
4+
on:
5+
workflow_dispatch:
6+
push:
7+
branches: [ main ]
8+
pull_request:
9+
branches: [ main ]
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
17+
- name: Set Up JDK
18+
uses: actions/setup-java@v3
19+
with:
20+
distribution: 'zulu'
21+
java-version: '17'
22+
cache: 'gradle'
23+
24+
- name: Setup Gradle
25+
uses: gradle/actions/setup-gradle@v4
26+
27+
- name: Make gradlew executable
28+
run: chmod +x ./gradlew
29+
working-directory: ./adaptive-apps-samples/CanonicalLayouts/supporting-pane-compose
30+
31+
- name: Build supporting-pane-compose app
32+
working-directory: ./adaptive-apps-samples/CanonicalLayouts/supporting-pane-compose
33+
run: ./gradlew :app:assembleDebug
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Workflow name
2+
name: Build supporting-pane-fragments
3+
4+
on:
5+
workflow_dispatch:
6+
push:
7+
branches: [ main ]
8+
pull_request:
9+
branches: [ main ]
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
17+
- name: Set Up JDK
18+
uses: actions/setup-java@v3
19+
with:
20+
distribution: 'zulu'
21+
java-version: '17'
22+
cache: 'gradle'
23+
24+
- name: Setup Gradle
25+
uses: gradle/actions/setup-gradle@v4
26+
27+
- name: Make gradlew executable
28+
run: chmod +x ./gradlew
29+
working-directory: ./adaptive-apps-samples/CanonicalLayouts/supporting-pane-fragments
30+
31+
- name: Build supporting-pane-fragments app
32+
working-directory: ./adaptive-apps-samples/CanonicalLayouts/supporting-pane-fragments
33+
run: ./gradlew :app:assembleDebug
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Workflow name
2+
name: Build supporting-pane-views
3+
4+
on:
5+
workflow_dispatch:
6+
push:
7+
branches: [ main ]
8+
pull_request:
9+
branches: [ main ]
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
17+
- name: Set Up JDK
18+
uses: actions/setup-java@v3
19+
with:
20+
distribution: 'zulu'
21+
java-version: '17'
22+
cache: 'gradle'
23+
24+
- name: Setup Gradle
25+
uses: gradle/actions/setup-gradle@v4
26+
27+
- name: Make gradlew executable
28+
run: chmod +x ./gradlew
29+
working-directory: ./adaptive-apps-samples/CanonicalLayouts/supporting-pane-views
30+
31+
- name: Build supporting-pane-views app
32+
working-directory: ./adaptive-apps-samples/CanonicalLayouts/supporting-pane-views
33+
run: ./gradlew :app:assembleDebug

0 commit comments

Comments
 (0)