-
Notifications
You must be signed in to change notification settings - Fork 31
40 lines (33 loc) · 973 Bytes
/
codegen.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
name: Codegen
on:
push:
branches: [ main ]
pull_request:
workflow_dispatch:
jobs:
codegen:
if: github.repository == 'smithy-lang/smithy-swift' || github.event_name == 'pull_request'
runs-on: ${{ matrix.os }}
name: Java ${{ matrix.java }} ${{ matrix.os }}
strategy:
matrix:
java: [17]
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- uses: gradle/wrapper-validation-action@v2
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'corretto'
- name: Log Kotlin version
run: |
which kotlin
kotlin -version
- name: Clean and Build
run: ./gradlew clean build -Plog-tests
- name: Ensure there are no changes after building (e.g. a test sdk)
run: |
git diff
test -z "$(git diff)"