Skip to content

Commit 1efc663

Browse files
committed
Dig even deeper
1 parent 6fcdfe4 commit 1efc663

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/swift/windows.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { downloadTool } from "@actions/tool-cache";
33
import { cmd, tempDir } from "../core";
44
import { machine } from "os";
55
import { join, resolve } from "path";
6+
import { coerce } from "semver";
67

78
/**
89
* Setup Swift on Windows as theres no support for Swiftly yet.
@@ -40,12 +41,12 @@ async function download(version: string) {
4041
"OptionsInstallIDE=0",
4142
);
4243

43-
await cmd("dir", join(targetPath, "Toolchains"));
44+
await cmd("dir", join(targetPath, "Toolchains", "6.1.0+Asserts"));
4445

4546
return join(
4647
targetPath,
4748
"Toolchains",
48-
"unknown-Asserts-development.xctoolchain",
49+
`${coerce(version)}+Asserts`,
4950
"usr",
5051
"bin",
5152
);

0 commit comments

Comments
 (0)