-
Notifications
You must be signed in to change notification settings - Fork 8
51 lines (44 loc) · 1.38 KB
/
smithy-polymorph.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
46
47
48
49
50
51
name: smithy-dafny-codegen-cli workflows
on:
pull_request:
push:
branches:
- main-1.x
jobs:
gradle-build-smithy-dafny:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-13]
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/setup-java@v3
with:
distribution: "corretto"
java-version: "17"
- name: Setup Dafny
uses: dafny-lang/[email protected]
with:
dafny-version: 4.8.1
- name: Install Smithy-Dafny codegen dependencies
uses: ./.github/actions/install_smithy_dafny_codegen_dependencies
- name: Execute smithy-dafny-codegen-cli tests
uses: gradle/gradle-build-action@v2
with:
arguments: :smithy-dafny-codegen-cli:test
build-root-directory: codegen
- name: Execute smithy-dafny-codegen tests
uses: gradle/gradle-build-action@v2
with:
arguments: :smithy-dafny-codegen:test
build-root-directory: codegen
- name: Build a test model (just to test multiple OS')
shell: bash
working-directory: TestModels/SimpleTypes/SimpleString
run: make polymorph_dafny
- name: not-grep
if: matrix.os == 'ubuntu-latest'
uses: mattsb42-meta/[email protected]