Skip to content

Commit e44b3b3

Browse files
committed
Use absolute CONAN_HOME path in CI and docs
- Set CONAN_HOME to ${{ github.workspace }}/build/conan in workflow jobs - Document local absolute-path export in DEVELOPMENT.md and hostlibs README
1 parent a0d97bf commit e44b3b3

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
windows-hostlibs:
1515
runs-on: windows-2025-vs2026
1616
env:
17-
CONAN_HOME: build/conan
17+
CONAN_HOME: ${{ github.workspace }}/build/conan
1818
strategy:
1919
matrix:
2020
include:
@@ -84,7 +84,7 @@ jobs:
8484
windows-skia:
8585
runs-on: windows-2025-vs2026
8686
env:
87-
CONAN_HOME: build/conan
87+
CONAN_HOME: ${{ github.workspace }}/build/conan
8888
strategy:
8989
matrix:
9090
include:
@@ -129,7 +129,7 @@ jobs:
129129
windows-angle:
130130
runs-on: windows-2025-vs2026
131131
env:
132-
CONAN_HOME: build/conan
132+
CONAN_HOME: ${{ github.workspace }}/build/conan
133133
strategy:
134134
matrix:
135135
include:
@@ -261,7 +261,7 @@ jobs:
261261
linux-hostlibs:
262262
runs-on: ubuntu-latest
263263
env:
264-
CONAN_HOME: build/conan
264+
CONAN_HOME: ${{ github.workspace }}/build/conan
265265
needs:
266266
- linux-sysroot
267267

@@ -337,7 +337,7 @@ jobs:
337337
linux-skia:
338338
runs-on: ubuntu-latest
339339
env:
340-
CONAN_HOME: build/conan
340+
CONAN_HOME: ${{ github.workspace }}/build/conan
341341
needs:
342342
- linux-sysroot
343343

DEVELOPMENT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ task build-hostlibs ARCH=arm64
8989
task build-hostlibs ARCH=x64 PGO=false # no-pgo flavor
9090
```
9191

92-
Conan 的 cache 和 source 目录位于 `build/conan`
92+
`CONAN_HOME` 设为 `build/conan` 的绝对路径。本地构建前先 `export CONAN_HOME=$(pwd)/build/conan`(或 PowerShell: `$env:CONAN_HOME = "$PWD\build\conan"`
9393

9494
### 2. 构建 SkiaSharp / HarfBuzzSharp
9595

native/hostlibs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This Conan 2 recipe builds and packages the .NET Runtime apphost and single-file
44
host static link inputs. `pgo=True` is the default package; set `pgo=False` for
55
the Windows no-PGO flavor.
66

7-
On Windows, set `CONAN_HOME` to `build\conan` to avoid path-length issues. The
7+
Set `CONAN_HOME` to an absolute path (e.g. `$PWD/build/conan`). The
88
Runtime build has deeply nested paths and long MSVC command lines.
99

1010
The deployer preserves the response-file-relative directory tree expected by the

0 commit comments

Comments
 (0)