Skip to content

Commit 5784929

Browse files
committed
Move to separate folder
1 parent 8da4364 commit 5784929

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

src/main.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import { EOL } from "os";
22
import { equalVersions, getOS } from "./core";
33
import { installSwift, setupLinux, setupMacOS } from "./swiftly";
4-
import { currentVersion, setupWindows } from "./swift";
4+
import { currentVersion } from "./swift";
55
import { error, getInput, info, setFailed, setOutput } from "@actions/core";
6+
import { setupWindows } from "./windows";
67

78
/**
89
* Main entry point for the action

src/windows/index.ts

Whitespace-only changes.

src/swift/windows.ts renamed to src/windows/windows.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,13 @@ async function download(version: string) {
3434

3535
const targetPath = join(tmpPath, "Swift");
3636

37-
await cmd(installerPath, "/passive", "/quiet", "/norestart", `InstallRoot=${targetPath}`);
37+
await cmd(
38+
installerPath,
39+
"/passive",
40+
"/quiet",
41+
"/norestart",
42+
`InstallRoot=${targetPath}`,
43+
);
3844

3945
return join(
4046
targetPath,

0 commit comments

Comments
 (0)