Skip to content

Commit e036274

Browse files
committed
Try to find the path where Swift is normally at
1 parent a4880fb commit e036274

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
@@ -1,14 +1,15 @@
11
import { addPath, debug } from "@actions/core";
2-
import { downloadTool, find } from "@actions/tool-cache";
2+
import { downloadTool } from "@actions/tool-cache";
33
import { cmd, tempDir } from "../core";
44
import { machine } from "os";
5-
import { join } from "path";
5+
import { join, resolve } from "path";
66

77
/**
88
* Setup Swift on Windows as theres no support for Swiftly yet.
99
*/
1010
export async function setupWindows(version: string) {
1111
await download(version);
12+
addPath(resolve("%LocalAppData%", "Programs", "Swift"));
1213
}
1314

1415
async function download(version: string) {

0 commit comments

Comments
 (0)