Skip to content

Commit fea0f83

Browse files
auto commit
1 parent 22d01f1 commit fea0f83

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

.github/actions/polymorph_codegen/action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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'

.github/workflows/ci_test_go.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff 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' }}

0 commit comments

Comments
 (0)