Skip to content

Commit 217e155

Browse files
letting cmake find the fortran compiler on path.
1 parent 9594962 commit 217e155

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/build_wheels.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,12 +195,15 @@ jobs:
195195
run: |
196196
$pcount = $($(Get-WmiObject -class Win32_ComputerSystem).numberoflogicalprocessors)
197197
python ..\scripts\build_flang.py -b "Release" -d build -t X86 -p "$(pwd)\..\..\classic-flang-llvm-project\classic-flang-llvm-project\build\" -j $pcount -v
198-
$resolved = Resolve-Path "$(pwd)\..\..\classic-flang-llvm-project\classic-flang-llvm-project\build\"
198+
$resolved = Resolve-Path "$(pwd)\..\..\classic-flang-llvm-project\classic-flang-llvm-project\build\bin\"
199199
$resolved_path = $resolved.Path
200200
$new_path = $resolved_path + ";" + [Environment]::GetEnvironmentVariable("GITHUB_PATH", "Machine")
201+
$env:PATH = "$resolved_path;$env:PATH"
202+
$resolved_path | Set-Content -Path $env:GITHUB_PATH
201203
Write-Output "New GITHUB_PATH: "
202204
Write-Output "$new_path"
203205
[Environment]::SetEnvironmentVariable("GITHUB_PATH", "$new_path", "Machine")
206+
flang --version
204207
205208
- name: Install Windows Dependencies (Part 2a - Reclean Windows Workspace)
206209
if: ${{ matrix.os == 'windows-latest'}}
@@ -243,6 +246,8 @@ jobs:
243246
CXX=clang++
244247
FC=flang
245248
CMAKE_GENERATOR=Ninja
249+
CMAKE_TOOLCHAIN_FILE=D:\a\vcell-fvsolver\vcell-fvsolver\build\conan_toolchain.cmake
250+
246251
# with:
247252
# package-dir: .
248253
# output-dir: wheelhouse

0 commit comments

Comments
 (0)