Skip to content

Commit 66bb8fe

Browse files
authored
Add build workflow.
1 parent 1891869 commit 66bb8fe

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/build.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Copyright 2022 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
name: Build snippets
15+
16+
on:
17+
push:
18+
branches: [ '*' ]
19+
pull_request:
20+
branches: [ '*' ]
21+
workflow_dispatch:
22+
23+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
24+
jobs:
25+
build:
26+
runs-on: ubuntu-latest
27+
timeout-minutes: 30
28+
29+
steps:
30+
- uses: actions/checkout@v3
31+
32+
- name: set up Java 11
33+
uses: actions/setup-java@v2
34+
with:
35+
distribution: 'adopt'
36+
java-version: '11'
37+
38+
- name: Set up JDK 11
39+
uses: actions/setup-java@v1
40+
with:
41+
java-version: 11
42+
43+
- name: Build Compose
44+
run: ./gradlew :compose:build

0 commit comments

Comments
 (0)