Skip to content

Commit 064f70c

Browse files
committed
Add toolchain to path
1 parent 903b06d commit 064f70c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/swiftly/swiftly.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { debug, info } from "@actions/core";
1+
import { addPath, debug, info } from "@actions/core";
22
import { cmd } from "../core";
33

44
async function swiftly(...args: string[]) {
@@ -21,6 +21,8 @@ export async function installSwift(version: string) {
2121
info(`Installing Swift ${version}`);
2222
await swiftly("install", "--use", version, "--assume-yes");
2323

24-
const location = swiftly("use", "--print-location");
24+
const location = await swiftly("use", "--print-location");
2525
debug(`Swiftly installed Swift to ${location}`);
26+
27+
addPath(location);
2628
}

0 commit comments

Comments
 (0)