Skip to content

Commit 647dd3d

Browse files
author
Lucas McDonald
committed
m
1 parent ccf61d6 commit 647dd3d

File tree

4 files changed

+36
-13
lines changed

4 files changed

+36
-13
lines changed

.github/actions/install_smithy_dafny_codegen_dependencies/action.yml

Lines changed: 34 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,40 @@ description: "Install Java package dependencies required to run Smithy-Dafny cod
88
runs:
99
using: "composite"
1010
steps:
11-
- name: Install smithy-dafny-codegen Rust dependencies locally
12-
uses: gradle/gradle-build-action@v2
11+
- name: Setup Java 17 for codegen
12+
uses: actions/setup-java@v3
1313
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
14+
distribution: "corretto"
15+
java-version: "17"
1616

17-
- name: Install smithy-dafny-codegen Python dependencies locally
18-
uses: gradle/gradle-build-action@v2
17+
- name: Install smithy-dafny-codegen dependencies locally
18+
shell: bash
19+
run: |
20+
make -C smithy-dafny mvn_local_deploy_polymorph_dependencies
21+
22+
- name: Setup Python, black, and docformatter for code formatting
23+
uses: actions/setup-python@v4
24+
with:
25+
python-version: ${{ matrix.python-version }}
26+
architecture: x64
27+
- shell: bash
28+
run: |
29+
python -m pip install --upgrade pip
30+
python -m pip install --upgrade black
31+
python -m pip install --upgrade docformatter
32+
33+
- name: Install Go
34+
uses: actions/setup-go@v5
1935
with:
20-
arguments: :smithy-python-codegen:pTML
21-
build-root-directory: submodules/smithy-dafny/codegen/smithy-dafny-codegen-modules/smithy-python/codegen
36+
go-version: "1.23"
37+
38+
- name: Install Go imports
39+
shell: bash
40+
run: |
41+
go install golang.org/x/tools/cmd/goimports@latest
42+
43+
# Without this the if-dafny-at-least command includes "Downloading ..." output
44+
- name: Arbitrary makefile target to force downloading Gradle
45+
shell: bash
46+
run: |
47+
make -C StandardLibrary setup_net

.github/workflows/ci_codegen.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,6 @@ jobs:
6060
- name: Install Smithy-Dafny codegen dependencies
6161
uses: ./.github/actions/install_smithy_dafny_codegen_dependencies
6262

63-
- name: Install Smithy-Dafny codegen dependencies
64-
uses: ./.github/actions/install_smithy_dafny_codegen_dependencies
65-
6663
- uses: ./.github/actions/polymorph_codegen
6764
with:
6865
dafny: ${{ inputs.dafny }}

submodules/smithy-dafny

0 commit comments

Comments
 (0)