File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed
actions/polymorph_codegen Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -141,6 +141,12 @@ runs:
141
141
run : |
142
142
make polymorph_dotnet ${{ steps.dependencies.outputs.PROJECT_DEPENDENCIES }}
143
143
144
+ - name : Regenerate Go code using smithy-dafny
145
+ working-directory : ./${{ inputs.library }}
146
+ shell : bash
147
+ run : |
148
+ make polymorph_go ${{ steps.dependencies.outputs.PROJECT_DEPENDENCIES }}
149
+
144
150
- name : Check regenerated code against commited code
145
151
# Composite action inputs seem to not actually support booleans properly for some reason
146
152
if : inputs.diff-generated-code == 'true'
Original file line number Diff line number Diff line change @@ -116,11 +116,14 @@ jobs:
116
116
CORES=$(node -e 'console.log(os.cpus().length)')
117
117
make transpile_go CORES=$CORES
118
118
119
- - name : Regenerate code using smithy-dafny
120
- shell : bash
121
- working-directory : ./${{ matrix.library }}
122
- run : |
123
- make polymorph_go
119
+ - name : Regenerate code using smithy-dafny if necessary
120
+ if : ${{ inputs.regenerate-code }}
121
+ uses : ./.github/actions/polymorph_codegen
122
+ with :
123
+ dafny : ${{ env.DAFNY_VERSION }}
124
+ library : ${{ matrix.library }}
125
+ diff-generated-code : false
126
+ update-and-regenerate-mpl : true
124
127
125
128
- name : Copy ${{ matrix.library }} Vector Files
126
129
if : ${{ matrix.library == 'TestVectors' }}
You can’t perform that action at this time.
0 commit comments