-
Notifications
You must be signed in to change notification settings - Fork 20
45 lines (38 loc) · 1.09 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: ci
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ${{ matrix.os }}
name: Java ${{ matrix.java }} ${{ matrix.os }}
strategy:
matrix:
java: [8, 11]
os: [ubuntu-latest, windows-latest]
steps:
- name: Checkout smithy-gradle-plugin
uses: actions/checkout@v2
with:
path: smithy-gradle-plugin
# We checkout smithy main here since we will often require changes that
# have not yet been released but have been merged.
- name: Checkout smithy main branch
uses: actions/checkout@v2
with:
repository: awslabs/smithy
path: smithy
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Publish smithy main to maven local
run: |
cd smithy
./gradlew clean publishToMavenLocal
- name: Clean and build smithy-gradle-plugin
run: |
cd smithy-gradle-plugin
./gradlew clean build -Plog-tests