File tree 2 files changed +33
-1
lines changed
actions/install_smithy_dafny_codegen_dependencies
2 files changed +33
-1
lines changed Original file line number Diff line number Diff line change
1
+ #
2
+ # This local action sets up code dependencies
3
+ # to run Smithy-Dafny CI in GitHub Actions workflows.
4
+ #
5
+
6
+ name : " Install Smithy-Dafny codegen dependencies"
7
+ description : " Install Java package dependencies required to run Smithy-Dafny codegen"
8
+ runs :
9
+ using : " composite"
10
+ steps :
11
+ - name : Install smithy-dafny-codegen Rust dependencies locally
12
+ uses : gradle/gradle-build-action@v2
13
+ with :
14
+ arguments : :codegen-client:pTML :codegen-core:pTML :rust-runtime:pTML
15
+ build-root-directory : submodules/smithy-dafny/smithy-dafny-codegen-modules/smithy-rs
16
+
17
+ - name : Install smithy-dafny-codegen Python dependencies locally
18
+ uses : gradle/gradle-build-action@v2
19
+ with :
20
+ arguments : :smithy-python-codegen:pTML
21
+ build-root-directory : submodules/smithy-dafny/codegen/smithy-dafny-codegen-modules/smithy-python/codegen
Original file line number Diff line number Diff line change 33
33
- uses : actions/checkout@v3
34
34
with :
35
35
submodules : recursive
36
+ - run : git submodule update --init --recursive submodules/smithy-dafny
36
37
37
38
# Only used to format generated code
38
39
# and to translate version strings such as "nightly-latest"
46
47
uses : actions/setup-dotnet@v4
47
48
with :
48
49
dotnet-version : ${{ matrix.dotnet-version }}
50
+
51
+
52
+ - name : Setup Java 17 for codegen
53
+ uses : actions/setup-java@v3
54
+ with :
55
+ distribution : " corretto"
56
+ java-version : " 17"
57
+
58
+ - name : Install Smithy-Dafny codegen dependencies
59
+ uses : ./.github/actions/install_smithy_dafny_codegen_dependencies
49
60
50
61
- uses : ./.github/actions/polymorph_codegen
51
62
with :
52
- dafny : ${{ env.DAFNY_VERSION }}
63
+ dafny : ${{ inputs.dafny }}
53
64
library : ${{ matrix.library }}
54
65
diff-generated-code : true
You can’t perform that action at this time.
0 commit comments