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 f1babb0 commit c211d8fCopy full SHA for c211d8f
src/swift/windows.ts
@@ -1,7 +1,8 @@
1
import { addPath, debug } from "@actions/core";
2
import { downloadTool, find } from "@actions/tool-cache";
3
-import { cmd } from "../core";
+import { cmd, tempDir } from "../core";
4
import { machine } from "os";
5
+import { join } from "path";
6
7
/**
8
* Setup Swift on Windows as theres no support for Swiftly yet.
@@ -22,7 +23,12 @@ async function download(version: string) {
22
23
24
debug(`Downloading Swift installer from ${url}`);
25
- const installerPath = await downloadTool(url);
26
+ const tmpPath = tempDir();
27
+
28
+ const installerPath = await downloadTool(
29
+ url,
30
+ join(tmpPath, "swift-installer.exe"),
31
+ );
32
33
await cmd(installerPath);
34
}
0 commit comments