File tree Expand file tree Collapse file tree 3 files changed +57
-1
lines changed Expand file tree Collapse file tree 3 files changed +57
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : " Check Out and update files with MPL-HEAD"
2
+ description : " Updates the MPL submodule to point at HEAD and updates the files that depend on the version defined in project.properties"
3
+ inputs :
4
+ update-and-regenerate-mpl :
5
+ description : " Locally update MPL to the tip of master and regenerate its code"
6
+ required : true
7
+ default : false
8
+ type : boolean
9
+ runs :
10
+ using : " composite"
11
+ steps :
12
+ - name : Update MPL submodule locally if requested
13
+ if : inputs.update-and-regenerate-mpl == 'true'
14
+ working-directory : submodules/MaterialProviders
15
+ shell : bash
16
+ run : |
17
+ git fetch
18
+ git checkout main
19
+ git pull
20
+ git submodule update --init --recursive
21
+
22
+ - name : Update top-level project.properties file in MPL
23
+ if : inputs.update-and-regenerate-mpl == 'true'
24
+ shell : bash
25
+ working-directory : submodules/MaterialProviders
26
+ run : |
27
+ make generate_properties_file
28
+
29
+ # Update the project.properties file so that we pick up the right runtimes etc.,
30
+ # in cases where inputs.dafny is different from the current value in that file.
31
+ - name : Generate smithy-dafny-project.properties file
32
+ if : inputs.update-and-regenerate-mpl == 'true'
33
+ env :
34
+ DAFNY_VERSION : ${{ inputs.dafny }}
35
+ shell : bash
36
+ run : |
37
+ make generate_properties_file
38
+
39
+ - name : Update top-level project.properties file
40
+ if : inputs.update-and-regenerate-mpl == 'true'
41
+ shell : bash
42
+ run : |
43
+ awk -F= '!a[$1]++' smithy-dafny-project.properties project.properties > merged.properties
44
+ mv merged.properties project.properties
45
+ cat project.properties
Original file line number Diff line number Diff line change 7
7
description : " The dafny version to run"
8
8
required : true
9
9
type : string
10
+ mpl-head :
11
+ description : " Using MPL HEAD"
12
+ required : false
13
+ default : false
14
+ type : boolean
10
15
11
16
jobs :
12
17
code-generation :
34
39
with :
35
40
submodules : recursive
36
41
42
+ - uses : ./.github/actions/mpl-head
43
+ if : ${{ inputs.mpl-head == true }}
44
+ with :
45
+ update-and-regenerate-mpl : true
46
+
37
47
# Only used to format generated code
38
48
# and to translate version strings such as "nightly-latest"
39
49
# to an actual DAFNY_VERSION.
Original file line number Diff line number Diff line change 21
21
mpl-head-ci-codegen :
22
22
needs : getVersion
23
23
if : github.event_name != 'schedule' || github.repository_owner == 'aws'
24
- uses : ./.github/actions/mpl-head/mpl_head_codegen .yml
24
+ uses : ./.github/workflows/ci_codegen .yml
25
25
with :
26
26
dafny : ${{needs.getVersion.outputs.version}}
27
+ mpl-head : true
27
28
# mpl-head-ci-verification:
28
29
# needs: getVerifyVersion
29
30
# if: github.event_name != 'schedule' || github.repository_owner == 'aws'
You can’t perform that action at this time.
0 commit comments