File tree Expand file tree Collapse file tree 5 files changed +77
-1
lines changed
actions/polymorph_codegen
AwsEncryptionSDK/runtimes/go
ImplementationFromDafny-go/WrappedAwsCryptographyEncryptionSdkService
TestsFromDafny-go/awscryptographyencryptionsdksmithygeneratedtypes Expand file tree Collapse file tree 5 files changed +77
-1
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,12 @@ runs:
116
116
# run: |
117
117
# make polymorph_rust ${{ steps.dependencies.outputs.PROJECT_DEPENDENCIES }}
118
118
119
+ - name : Regenerate Go code using smithy-dafny
120
+ working-directory : ./${{ inputs.library }}
121
+ shell : bash
122
+ run : |
123
+ make polymorph_go
124
+
119
125
- name : Check regenerated code against commited code
120
126
# Composite action inputs seem to not actually support booleans properly for some reason
121
127
if : inputs.diff-generated-code == 'true'
Original file line number Diff line number Diff line change 20
20
# Note dotnet is only used for formatting generated code
21
21
# in this workflow
22
22
dotnet-version : ["6.0.x"]
23
+ go-version : [1.23]
23
24
os : [ubuntu-latest]
24
25
runs-on : ${{ matrix.os }}
25
26
defaults :
61
62
- name : Install Smithy-Dafny codegen dependencies
62
63
uses : ./.github/actions/install_smithy_dafny_codegen_dependencies
63
64
65
+ - name : Install Go
66
+ uses : actions/setup-go@v5
67
+ with :
68
+ go-version : ${{ matrix.go-version }}
69
+
70
+ - name : Install Go imports
71
+ run : |
72
+ go install golang.org/x/tools/cmd/goimports@latest
73
+
64
74
- uses : ./.github/actions/polymorph_codegen
65
75
with :
66
76
dafny : ${{ env.DAFNY_VERSION }}
Original file line number Diff line number Diff line change @@ -22,8 +22,8 @@ import (
22
22
"github.com/aws/aws-encryption-sdk-dafny/releases/go/encryption-sdk/examples/keyring/multikeyring"
23
23
"github.com/aws/aws-encryption-sdk-dafny/releases/go/encryption-sdk/examples/keyring/rawaeskeyring"
24
24
"github.com/aws/aws-encryption-sdk-dafny/releases/go/encryption-sdk/examples/keyring/rawrsakeyring"
25
- "github.com/aws/aws-encryption-sdk-dafny/releases/go/encryption-sdk/examples/multithreading"
26
25
"github.com/aws/aws-encryption-sdk-dafny/releases/go/encryption-sdk/examples/misc"
26
+ "github.com/aws/aws-encryption-sdk-dafny/releases/go/encryption-sdk/examples/multithreading"
27
27
"github.com/aws/aws-encryption-sdk-dafny/releases/go/encryption-sdk/examples/utils"
28
28
)
29
29
You can’t perform that action at this time.
0 commit comments