Skip to content

Commit a39a0cd

Browse files
Reduce path-lengths in windows shell for conan
1 parent 370cec4 commit a39a0cd

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/build_wheels.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,15 +210,22 @@ jobs:
210210
if: ${{ matrix.os == 'windows-latest'}}
211211
uses: actions/checkout@v4
212212

213-
- name: Install Windows Dependencies (Part 2c - Remainder)
213+
- name: Install Windows Dependencies (Part 2c - Configure Conan)
214214
if: matrix.os == 'windows-latest'
215215
shell: powershell
216216
run: |
217217
choco install conan -y
218218
$conanDir = "C:\Program Files\Conan\conan"
219219
$env:PATH = "$conanDir;$env:PATH"
220220
$conanDir | Set-Content -Path $env:GITHUB_PATH
221+
$env:CONAN_HOME = "C:\.conan"
222+
"CONAN_HOME=C:\.conan" | Out-File -FilePath $env:GITHUB_ENV -Append
221223
conan --version
224+
225+
226+
- name: Install Windows Dependencies (Part 2d - Get Remaining Dependencies through Conan)
227+
if: matrix.os == 'windows-latest'
228+
run:
222229
conan profile detect --force
223230
conan install . --output-folder=build --build=missing
224231

0 commit comments

Comments
 (0)