Skip to content

Commit 3af0bff

Browse files
committed
Add CI workflows for CanonicalLayouts samples
This commit adds CI workflows to build each of the CanonicalLayouts samples. These workflows will run manually with workflow_dispatch and on push and pull request to the main branch. The following workflows were added: - feed-compose-build.yml - feed-view-build.yml - list-detail-activity-embedding-build.yml - list-detail-compose-build.yml - list-detail-sliding-pane-build.yml - supporting-pane-compose-build.yml - supporting-pane-fragments-build.yml - supporting-pane-views-build.yml
1 parent 1771a22 commit 3af0bff

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)