We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fcdfe4 commit 1efc663Copy full SHA for 1efc663
src/swift/windows.ts
@@ -3,6 +3,7 @@ import { downloadTool } from "@actions/tool-cache";
3
import { cmd, tempDir } from "../core";
4
import { machine } from "os";
5
import { join, resolve } from "path";
6
+import { coerce } from "semver";
7
8
/**
9
* Setup Swift on Windows as theres no support for Swiftly yet.
@@ -40,12 +41,12 @@ async function download(version: string) {
40
41
"OptionsInstallIDE=0",
42
);
43
- await cmd("dir", join(targetPath, "Toolchains"));
44
+ await cmd("dir", join(targetPath, "Toolchains", "6.1.0+Asserts"));
45
46
return join(
47
targetPath,
48
"Toolchains",
- "unknown-Asserts-development.xctoolchain",
49
+ `${coerce(version)}+Asserts`,
50
"usr",
51
"bin",
52
0 commit comments