Skip to content

Commit ce41b55

Browse files
committed
Fix source path issues
1 parent bcd374b commit ce41b55

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/dawn.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
uses: actions/upload-artifact@v4
4545
with:
4646
name: dawn-source
47-
path: Dawn/dawn_source/
47+
path: Dawn/dawn-source/
4848
retention-days: 1
4949

5050
- name: Read Dawn version

Dawn/dawn_source.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def fetch_dawn_source(hash: str) -> None:
128128
DawnSourceDirectoryConfigurationError, DawnSourceToolsDirectoryNotFoundError, for Dawn Source directory errors
129129
"""
130130
# Remove destination directory if it exists
131-
dest_dir = pathlib.Path("dawn_source").resolve()
131+
dest_dir = get_dawn_path()
132132
if dest_dir.exists():
133133
shutil.rmtree(dest_dir)
134134

@@ -177,7 +177,7 @@ def remove_dawn_source() -> None:
177177
"""
178178
Remove the Dawn source directory and version file.
179179
"""
180-
dawn_source_dir = pathlib.Path("dawn_source").resolve()
180+
dawn_source_dir = get_dawn_path()
181181
if dawn_source_dir.exists():
182182
shutil.rmtree(dawn_source_dir)
183183

@@ -193,4 +193,4 @@ def get_dawn_path() -> pathlib.Path:
193193
Returns:
194194
Path to the Dawn source directory
195195
"""
196-
return pathlib.Path("dawn_source").resolve()
196+
return pathlib.Path("dawn-source").resolve()

0 commit comments

Comments
 (0)