Skip to content

Commit 9223f54

Browse files
committed
Enable Windows
1 parent 3572de5 commit 9223f54

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

.github/workflows/dawn.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ jobs:
9999
- platform: macos-latest
100100
target: macosx
101101
python-version: "3.11"
102-
# - platform: windows-latest
103-
# target: windows
104-
# python-version: "3.11"
102+
- platform: windows-latest
103+
target: windows
104+
python-version: "3.11"
105105
- platform: macos-latest
106106
target: iphoneos
107107
python-version: "3.11"

Dawn/archive_builder.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ def write_target_manifest(
2828
target_dir = build_dir / str(target_config) / "install"
2929
manifest = {
3030
"targetName": str(target_config),
31-
"libraryPath": str(target_dir / "lib"),
32-
"includePath": str(target_dir / "include"),
31+
"libraryPath": (target_dir / "lib").as_posix(),
32+
"includePath": (target_dir / "include").as_posix(),
3333
"supportedTriples": target_config.triples(),
3434
"libraryName": "libwebgpu_dawn.lib"
3535
if target_config.os.is_windows()
@@ -165,7 +165,9 @@ def create_artifact_bundle(version: str, archive_name: str) -> pathlib.Path:
165165
archive_path.unlink()
166166

167167
shutil.make_archive(
168-
archive_path, "zip", root_dir=dist_directory(), base_dir=archive_dir.name
168+
archive_path, "zip",
169+
root_dir=dist_directory(),
170+
base_dir=archive_dir.name,
169171
)
170172

171173
return archive_path

Dawn/ci_build_dawn.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,10 @@ def parse_args() -> argparse.Namespace:
8787
help="Chromium channel to use for Dawn",
8888
)
8989

90-
get_parser = subparsers.add_parser("get-source", help="Get the Dawn source")
90+
get_parser = subparsers.add_parser(
91+
"get-source",
92+
help="Get the Dawn source"
93+
)
9194
get_parser.add_argument(
9295
"--hash",
9396
required=True,
@@ -135,6 +138,7 @@ def main() -> int:
135138
"macosx",
136139
"iphoneos",
137140
"iphonesimulator",
141+
"windows",
138142
]:
139143
print(f"Invalid target: {args.target}")
140144
return _EXIT_FAILURE

0 commit comments

Comments
 (0)