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:
141141 run : |
142142 make polymorph_dotnet ${{ steps.dependencies.outputs.PROJECT_DEPENDENCIES }}
143143
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+
144150 - name : Check regenerated code against commited code
145151 # Composite action inputs seem to not actually support booleans properly for some reason
146152 if : inputs.diff-generated-code == 'true'
Original file line number Diff line number Diff line change @@ -116,11 +116,14 @@ jobs:
116116 CORES=$(node -e 'console.log(os.cpus().length)')
117117 make transpile_go CORES=$CORES
118118
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
124127
125128 - name : Copy ${{ matrix.library }} Vector Files
126129 if : ${{ matrix.library == 'TestVectors' }}
You can’t perform that action at this time.
0 commit comments