File tree Expand file tree Collapse file tree 3 files changed +24
-10
lines changed Expand file tree Collapse file tree 3 files changed +24
-10
lines changed Original file line number Diff line number Diff line change @@ -11,9 +11,8 @@ inputs:
11
11
type : string
12
12
dependency-identifiers :
13
13
type : string
14
- dependency- msbuild-target :
14
+ msbuild-dependency -target :
15
15
type : string
16
- default : CKANInstall
17
16
solution-file-path :
18
17
type : string
19
18
@@ -37,16 +36,12 @@ runs:
37
36
dotnet-version : 5.x
38
37
39
38
- name : Install Dependencies
40
- if : inputs.dependency-identifiers != ''
39
+ if : inputs.dependency-identifiers != '' || inputs.msbuild-dependency-target != ''
41
40
uses : KSPModdingLibs/KSPBuildTools/.github/actions/install-dependencies@main
42
41
with :
43
42
dependency-identifiers : ${{ inputs.dependency-identifiers }}
44
-
45
- - name : Install Dependencies With MSBuild
46
- if : inputs.dependency-msbuild-target != ''
47
- shell : bash
48
- working-directory : ${{ github.workspace }}
49
- run : msbuild /t:${{ inputs.dependency-msbuild-target }} /p:KSPRoot=${{ env.KSP_ROOT }} ${{ inputs.solution-file-path }}
43
+ msbuild-dependency-target : ${{ inputs.msbuild-dependency-target }}
44
+ solution-file-path : ${{ inputs.solution-file-path }}
50
45
51
46
- name : Download KSP Libs
52
47
shell : bash
Original file line number Diff line number Diff line change @@ -3,7 +3,10 @@ name: install-dependencies
3
3
inputs :
4
4
dependency-identifiers :
5
5
type : string
6
- required : true
6
+ msbuild-dependency-target :
7
+ type : string
8
+ solution-file-path :
9
+ type : string
7
10
ckan-compatible-versions :
8
11
type : string
9
12
default : |
@@ -51,11 +54,24 @@ runs:
51
54
done
52
55
53
56
- name : ckan-install-mod
57
+ if : inputs.dependency-identifiers != ''
54
58
shell : bash
55
59
run : |
56
60
identifiers="${{ inputs.dependency-identifiers}}"
57
61
ckan install --no-recommends --headless $identifiers
58
62
63
+ - name : Setup .NET
64
+ if : inputs.msbuild-dependency-target != ''
65
+ uses : actions/setup-dotnet@v4
66
+ with :
67
+ dotnet-version : 5.x
68
+
69
+ - name : msbuild-dependency-target
70
+ if : inputs.msbuild-dependency-target != ''
71
+ shell : bash
72
+ working-directory : ${{ github.workspace }}
73
+ run : msbuild /t:${{ inputs.msbuild-dependency-target }} /p:KSPRoot=${{ env.KSP_ROOT }} ${{ inputs.solution-file-path }}
74
+
59
75
- name : debug
60
76
if : env.ACTIONS_STEP_DEBUG
61
77
shell : bash
Original file line number Diff line number Diff line change 14
14
default : https://github.com/KSPModdingLibs/KSPLibs/raw/main/KSP-1.12.5.zip
15
15
dependency-identifiers :
16
16
type : string
17
+ msbuild-dependency-target :
18
+ type : string
17
19
solution-file-path :
18
20
type : string
19
21
secrets :
44
46
ksp-zip-url : ${{ inputs.ksp-zip-url }}
45
47
ksp-zip-password : ${{ secrets.ksp-zip-password }}
46
48
dependency-identifiers : ${{ inputs.dependency-identifiers }}
49
+ msbuild-dependency-target : ${{ inputs.msbuild-dependency-target }}
47
50
solution-file-path : ${{ inputs.solution-file-path }}
48
51
49
52
- name : assemble-release
You can’t perform that action at this time.
0 commit comments