File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change 36
36
37
37
- name : Smoke test
38
38
run : cmake -GNinja -S .github/smoke-test -B .cmake-build && cmake --build .cmake-build
39
+
40
+ windows-installer-args :
41
+ name : Test installer arguments on Windows
42
+ runs-on : windows-latest
43
+
44
+ steps :
45
+ - uses : actions/checkout@v3
46
+ - uses : compnerd/gha-setup-vsdevenv@main
47
+
48
+ - name : Install Swift without the IDE component
49
+ uses : ./
50
+ with :
51
+ branch : development
52
+ tag : DEVELOPMENT-SNAPSHOT-2023-05-20-a
53
+ installer-args : OptionsInstallIde=0
54
+
55
+ - name : Assert that we find swiftc.exe
56
+ run : where.exe swiftc.exe
57
+
58
+ - name : Assert that we don't find sourcekit-lsp.exe
59
+ shell : pwsh
60
+ run : |
61
+ where.exe sourcekit-lsp.exe
62
+ if ($LastExitCode -eq 0) { exit 1 }
Original file line number Diff line number Diff line change @@ -24,6 +24,12 @@ inputs:
24
24
description : ' Optional Github token for fetching a release. Only specify when using custom toolchains from non-public Github releases.'
25
25
required : false
26
26
27
+ # common
28
+ installer-args :
29
+ description : ' Additional arguments to pass to the installer, space-delimited (double quotes are not supported)'
30
+ required : false
31
+ default : ' '
32
+
27
33
runs :
28
34
using : ' composite'
29
35
@@ -194,6 +200,8 @@ runs:
194
200
}
195
201
}
196
202
203
+ $InstallArgs += "${{ inputs.installer-args }}".Split(" ", [StringSplitOptions]"RemoveEmptyEntries")
204
+
197
205
$StartTime = Get-Date
198
206
Write-Host "Starting Install..."
199
207
try {
You can’t perform that action at this time.
0 commit comments