Enable long paths for Windows native builds

This commit is contained in:
greepar committed 2026-06-20 18:33:51 +08:00
1 parent cd88a01c1f
commit 178ed49772
2 files changed
+6 -3

No files matched your search

+3 -1
View File
@@ -73,7 +73,9 @@ jobs:
- name: Install native build dependencies
shell: pwsh
run: choco install ninja llvm -y
run: |
git config --global core.longpaths true
choco install ninja llvm -y
- name: Build Windows static graphics libraries
shell: pwsh
+3 -2
View File
@@ -25,6 +25,7 @@ function Ensure-Tools {
Require-Command git
Require-Command python
Require-Command ninja
git config --global core.longpaths true
}
function Ensure-DepotTools {
@@ -51,7 +52,7 @@ function Copy-FirstExisting($Destination, [string[]]$Candidates) {
function Sync-SkiaSharp {
$src = Join-Path $WorkDir "SkiaSharp-$SkiaSharpVersion"
if (-not (Test-Path (Join-Path $src ".git"))) {
git clone --depth 1 --branch "release/$SkiaSharpVersion" https://github.com/mono/SkiaSharp.git $src
git -c core.longpaths=true clone --depth 1 --branch "release/$SkiaSharpVersion" https://github.com/mono/SkiaSharp.git $src
} else {
git -C $src fetch --depth 1 origin "release/$SkiaSharpVersion"
git -C $src checkout -q FETCH_HEAD
@@ -116,7 +117,7 @@ extra_cflags_cc = [ "/GR" ]
function Sync-Angle {
$src = Join-Path $WorkDir "ANGLE-$AngleBranch"
if (-not (Test-Path (Join-Path $src ".git"))) {
git clone --depth 1 --branch "chromium/$AngleBranch" https://github.com/google/angle.git $src
git -c core.longpaths=true clone --depth 1 --branch "chromium/$AngleBranch" https://github.com/google/angle.git $src
} else {
git -C $src fetch --depth 1 origin "chromium/$AngleBranch"
git -C $src checkout -q FETCH_HEAD