Skip to content

Commit

Permalink
Windows CI: PATH to Installed DLL
Browse files Browse the repository at this point in the history
* add the installed AMReX `.dll` to the PATH environment variable
  for shared builds
* clean up unused parts leftover from Ninja removal
  • Loading branch information
ax3l committed Mar 15, 2024
1 parent 1d4ddd7 commit 1dc9950
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ jobs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: seanmiddleditch/gha-setup-ninja@master
#- name: Set Up Cache
# uses: actions/cache@v3
# with:
Expand All @@ -38,7 +37,6 @@ jobs:
#ccache -z
cmake -S . -B build `
-DCMAKE_BUILD_TYPE=Debug `
-DBUILD_SHARED_LIBS=ON `
-DCMAKE_VERBOSE_MAKEFILE=ON `
-DAMReX_EB=OFF `
Expand All @@ -49,6 +47,8 @@ jobs:
cmake --build build --config Debug -j 4
cmake --build build --config Debug --target install
$Env:PATH += ";D:\\a\amrex\amrex\installdir\bin"
cmake --build build --config Debug --target test_install
#ccache -s
Expand All @@ -59,7 +59,6 @@ jobs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: seanmiddleditch/gha-setup-ninja@master
#- name: Set Up Cache
# uses: actions/cache@v3
# with:
Expand All @@ -83,7 +82,6 @@ jobs:
#ccache -z
cmake -S . -B build `
-DCMAKE_BUILD_TYPE=RelWithDebInfo `
-DCMAKE_VERBOSE_MAKEFILE=ON `
-DAMReX_EB=ON `
-DAMReX_ENABLE_TESTS=ON `
Expand Down Expand Up @@ -112,7 +110,6 @@ jobs:
run: |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\vc\Auxiliary\build\vcvarsall.bat" x64
cmake -S . -B build ^
-DCMAKE_BUILD_TYPE=Release ^
-DBUILD_SHARED_LIBS=ON ^
-DCMAKE_VERBOSE_MAKEFILE=ON ^
-DAMReX_EB=ON ^
Expand All @@ -123,6 +120,8 @@ jobs:
cmake --build build --config Release -j 4
cmake --build build --config Release --target install
set "PATH=%PATH%;D:\\a\amrex\amrex\installdir\bin"
cmake --build build --config Release --target test_install
# If we add ccache back, don't forget to update cleanup-cache.yml
Expand Down

0 comments on commit 1dc9950

Please sign in to comment.