Skip to content

Commit 7d6348b

Browse files
committed
Rip out everything windows for now
1 parent f96f680 commit 7d6348b

File tree

2 files changed

+2
-51
lines changed

2 files changed

+2
-51
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,7 @@ jobs:
2626
runs-on: ${{ matrix.os }}
2727
strategy:
2828
matrix:
29-
os:
30-
[
31-
ubuntu-latest,
32-
ubuntu-24.04-arm,
33-
macos-latest,
34-
windows-latest,
35-
windows-11-arm,
36-
]
29+
os: [ubuntu-latest, ubuntu-24.04-arm, macos-latest]
3730
swift: ["6.1"]
3831
steps:
3932
- uses: actions/checkout@v4
@@ -43,9 +36,6 @@ jobs:
4336
node-version-file: ".nvmrc"
4437
- run: npm install
4538
- run: npm run build && npm run pack-source-map
46-
- name: Add msbuild to PATH
47-
if: ${{ matrix.os == 'windows-latest' || matrix.os == 'windows-11-arm' }}
48-
uses: microsoft/setup-msbuild@v2
4939
- uses: ./
5040
with:
5141
swift-version: ${{ matrix.swift }}

src/windows/windows.ts

Lines changed: 1 addition & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -9,44 +9,5 @@ import { coerce } from "semver";
99
* Setup Swift on Windows as theres no support for Swiftly yet.
1010
*/
1111
export async function setupWindows(version: string) {
12-
const path = await download(version);
13-
addPath(path);
14-
}
15-
16-
async function download(version: string) {
17-
const m = machine();
18-
19-
let url: string;
20-
if (m === "arm64") {
21-
url = `https://download.swift.org/swift-${version}-release/windows10-arm64/swift-${version}-RELEASE/swift-${version}-RELEASE-windows10-arm64.exe`;
22-
} else {
23-
url = `https://download.swift.org/swift-${version}-release/windows10/swift-${version}-RELEASE/swift-${version}-RELEASE-windows10.exe`;
24-
}
25-
26-
debug(`Downloading Swift installer from ${url}`);
27-
28-
const tmpPath = tempDir();
29-
30-
const installerPath = await downloadTool(
31-
url,
32-
join(tmpPath, "swift-installer.exe"),
33-
);
34-
35-
const targetPath = join(tmpPath, "Swift");
36-
37-
await cmd(
38-
installerPath,
39-
"/passive",
40-
"/quiet",
41-
"/norestart",
42-
`InstallRoot=${targetPath}`,
43-
);
44-
45-
return join(
46-
targetPath,
47-
"Toolchains",
48-
`${coerce(version)}+Asserts`,
49-
"usr",
50-
"bin",
51-
);
12+
throw Error("Windows is not supported yet");
5213
}

0 commit comments

Comments
 (0)