Skip to content

Commit eacdcd5

Browse files
committed
update ci
1 parent d7be9d6 commit eacdcd5

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#
2+
# This local action sets up code dependencies
3+
# to run Smithy-Dafny CI in GitHub Actions workflows.
4+
#
5+
6+
name: "Install Smithy-Dafny codegen dependencies"
7+
description: "Install Java package dependencies required to run Smithy-Dafny codegen"
8+
runs:
9+
using: "composite"
10+
steps:
11+
- name: Install smithy-dafny-codegen Rust dependencies locally
12+
uses: gradle/gradle-build-action@v2
13+
with:
14+
arguments: :codegen-client:pTML :codegen-core:pTML :rust-runtime:pTML
15+
build-root-directory: submodules/smithy-dafny/smithy-dafny-codegen-modules/smithy-rs
16+
17+
- name: Install smithy-dafny-codegen Python dependencies locally
18+
uses: gradle/gradle-build-action@v2
19+
with:
20+
arguments: :smithy-python-codegen:pTML
21+
build-root-directory: submodules/smithy-dafny/codegen/smithy-dafny-codegen-modules/smithy-python/codegen

.github/workflows/ci_codegen.yml

+12-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
- uses: actions/checkout@v3
3434
with:
3535
submodules: recursive
36+
- run: git submodule update --init --recursive submodules/smithy-dafny
3637

3738
# Only used to format generated code
3839
# and to translate version strings such as "nightly-latest"
@@ -46,9 +47,19 @@ jobs:
4647
uses: actions/setup-dotnet@v4
4748
with:
4849
dotnet-version: ${{ matrix.dotnet-version }}
50+
51+
52+
- name: Setup Java 17 for codegen
53+
uses: actions/setup-java@v3
54+
with:
55+
distribution: "corretto"
56+
java-version: "17"
57+
58+
- name: Install Smithy-Dafny codegen dependencies
59+
uses: ./.github/actions/install_smithy_dafny_codegen_dependencies
4960

5061
- uses: ./.github/actions/polymorph_codegen
5162
with:
52-
dafny: ${{ env.DAFNY_VERSION }}
63+
dafny: ${{ inputs.dafny }}
5364
library: ${{ matrix.library }}
5465
diff-generated-code: true

0 commit comments

Comments
 (0)