Skip to content

chore(CI): Fix Dafny CLI CI error #1910

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
May 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,40 @@ description: "Install Java package dependencies required to run Smithy-Dafny cod
runs:
using: "composite"
steps:
- name: Install smithy-dafny-codegen Rust dependencies locally
uses: gradle/gradle-build-action@v2
- name: Setup Java 17 for codegen
uses: actions/setup-java@v3
with:
arguments: :codegen-client:pTML :codegen-core:pTML :rust-runtime:pTML
build-root-directory: submodules/smithy-dafny/smithy-dafny-codegen-modules/smithy-rs
distribution: "corretto"
java-version: "17"

- name: Install smithy-dafny-codegen Python dependencies locally
uses: gradle/gradle-build-action@v2
- name: Install smithy-dafny-codegen dependencies locally
shell: bash
run: |
make -C submodules/smithy-dafny mvn_local_deploy_polymorph_dependencies

- name: Setup Python, black, and docformatter for code formatting
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- shell: bash
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade black
python -m pip install --upgrade docformatter

- name: Install Go
uses: actions/setup-go@v5
with:
arguments: :smithy-python-codegen:pTML
build-root-directory: submodules/smithy-dafny/codegen/smithy-dafny-codegen-modules/smithy-python/codegen
go-version: "1.23"

- name: Install Go imports
shell: bash
run: |
go install golang.org/x/tools/cmd/goimports@latest

# Without this the if-dafny-at-least command includes "Downloading ..." output
- name: Arbitrary makefile target to force downloading Gradle
shell: bash
run: |
make -C submodules/MaterialProviders/StandardLibrary setup_net
3 changes: 0 additions & 3 deletions .github/workflows/ci_codegen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ jobs:
- name: Install Smithy-Dafny codegen dependencies
uses: ./.github/actions/install_smithy_dafny_codegen_dependencies

- name: Install Smithy-Dafny codegen dependencies
uses: ./.github/actions/install_smithy_dafny_codegen_dependencies

- uses: ./.github/actions/polymorph_codegen
with:
dafny: ${{ inputs.dafny }}
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/ci_examples_java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ jobs:
sed "s/mplDependencyJavaVersion=.*/mplDependencyJavaVersion=${{inputs.mpl-version}}/g" project.properties > project.properties2; mv project.properties2 project.properties

- name: Install Smithy-Dafny codegen dependencies
if: ${{ inputs.regenerate-code }}
uses: ./.github/actions/install_smithy_dafny_codegen_dependencies

- name: Regenerate code using smithy-dafny if necessary
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/ci_examples_net.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ jobs:
git rev-parse HEAD

- name: Install Smithy-Dafny codegen dependencies
if: ${{ inputs.regenerate-code }}
uses: ./.github/actions/install_smithy_dafny_codegen_dependencies

- name: Regenerate code using smithy-dafny if necessary
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/ci_test_java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ jobs:
sed "s/mplDependencyJavaVersion=.*/mplDependencyJavaVersion=${{inputs.mpl-version}}/g" project.properties > project.properties2; mv project.properties2 project.properties

- name: Install Smithy-Dafny codegen dependencies
if: ${{ inputs.regenerate-code }}
uses: ./.github/actions/install_smithy_dafny_codegen_dependencies

- name: Regenerate code using smithy-dafny if necessary
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/ci_test_latest_released_mpl_java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ jobs:
dafny-version: ${{ needs.getVersion.outputs.version }}

- name: Install Smithy-Dafny codegen dependencies
if: ${{ inputs.regenerate-code }}
uses: ./.github/actions/install_smithy_dafny_codegen_dependencies

- name: Regenerate code using smithy-dafny if necessary
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/ci_test_net.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ jobs:
git rev-parse HEAD

- name: Install Smithy-Dafny codegen dependencies
if: ${{ inputs.regenerate-code }}
uses: ./.github/actions/install_smithy_dafny_codegen_dependencies

- name: Regenerate code using smithy-dafny if necessary
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/ci_test_vector_java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ jobs:
sed "s/mplDependencyJavaVersion=.*/mplDependencyJavaVersion=${{inputs.mpl-version}}/g" project.properties > project.properties2; mv project.properties2 project.properties

- name: Install Smithy-Dafny codegen dependencies
if: ${{ inputs.regenerate-code }}
uses: ./.github/actions/install_smithy_dafny_codegen_dependencies

- name: Regenerate code using smithy-dafny if necessary
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/ci_test_vector_net.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ jobs:
git rev-parse HEAD

- name: Install Smithy-Dafny codegen dependencies
if: ${{ inputs.regenerate-code }}
uses: ./.github/actions/install_smithy_dafny_codegen_dependencies

- name: Regenerate code using smithy-dafny if necessary
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/library_dafny_verification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ jobs:
dotnet-version: "6.0.x"

- name: Install Smithy-Dafny codegen dependencies
if: ${{ inputs.regenerate-code }}
uses: ./.github/actions/install_smithy_dafny_codegen_dependencies

- name: Regenerate code using smithy-dafny if necessary
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/test_vector_verification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ jobs:
dotnet-version: "6.0.x"

- name: Install Smithy-Dafny codegen dependencies
if: ${{ inputs.regenerate-code }}
uses: ./.github/actions/install_smithy_dafny_codegen_dependencies

- name: Regenerate code using smithy-dafny if necessary
Expand Down
Loading