Skip to content
6 changes: 6 additions & 0 deletions .github/actions/polymorph_codegen/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ runs:
# run: |
# make polymorph_rust ${{ steps.dependencies.outputs.PROJECT_DEPENDENCIES }}

- name: Regenerate Go code using smithy-dafny
working-directory: ./${{ inputs.library }}
shell: bash
run: |
make polymorph_go

- name: Check regenerated code against commited code
# Composite action inputs seem to not actually support booleans properly for some reason
if: inputs.diff-generated-code == 'true'
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/library_codegen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
# Note dotnet is only used for formatting generated code
# in this workflow
dotnet-version: ["6.0.x"]
go-version: [1.23]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
defaults:
Expand Down Expand Up @@ -61,6 +62,15 @@ jobs:
- name: Install Smithy-Dafny codegen dependencies
uses: ./.github/actions/install_smithy_dafny_codegen_dependencies

- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}

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

- uses: ./.github/actions/polymorph_codegen
with:
dafny: ${{ env.DAFNY_VERSION }}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion AwsEncryptionSDK/runtimes/go/examples/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import (
"github.com/aws/aws-encryption-sdk-dafny/releases/go/encryption-sdk/examples/keyring/multikeyring"
"github.com/aws/aws-encryption-sdk-dafny/releases/go/encryption-sdk/examples/keyring/rawaeskeyring"
"github.com/aws/aws-encryption-sdk-dafny/releases/go/encryption-sdk/examples/keyring/rawrsakeyring"
"github.com/aws/aws-encryption-sdk-dafny/releases/go/encryption-sdk/examples/multithreading"
"github.com/aws/aws-encryption-sdk-dafny/releases/go/encryption-sdk/examples/misc"
"github.com/aws/aws-encryption-sdk-dafny/releases/go/encryption-sdk/examples/multithreading"
"github.com/aws/aws-encryption-sdk-dafny/releases/go/encryption-sdk/examples/utils"
)

Expand Down
Loading