-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* CI: Windows Add windows testing to continuous integration. * Windows: Fix Python Tests * Use AMReX PR 2918 * Install Python Deps * Wheel: Separate Directory The `pip_install` target did not yet work on Windows, because it has no universal wildcard `*` support for our pip install logic. Fix this by creating the wheel in a sub-directory and installing it by "finding all wheels for `pywarpx` in a given prefix". - Avoid wildcards by using a separate directory. - Avoid downloading deps during `wheel` build again. * Fix: MANIFEST.in * `setup.py`: Support IMPACTX_CMAKE_... Support `IMPACTX_CMAKE_...` environment variables for any CMake option. * CTest: --build-config * Update Docs & CI * BUILD_SHARED_LIBS=OFF * MSVC: RelWithDebInfo See if this avoids timeouts in app runs. * Win: Skip Python Running for Now Skip for now: - pytest - analysis - plot - python tests
- Loading branch information
Showing
10 changed files
with
148 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
name: 🪟 Windows | ||
|
||
on: [push, pull_request] | ||
|
||
concurrency: | ||
group: ${{ github.ref }}-${{ github.head_ref }}-windows | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build_win_msvc: | ||
name: MSVC C++17 w/o MPI | ||
runs-on: windows-latest | ||
if: github.event.pull_request.draft == false | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
name: Install Python | ||
with: | ||
python-version: '3.x' | ||
- name: CCache Cache | ||
uses: actions/cache@v2 | ||
# - once stored under a key, they become immutable (even if local cache path content changes) | ||
# - for a refresh the key has to change, e.g., hash of a tracked file in the key | ||
with: | ||
path: | | ||
~/.ccache | ||
~/.cache/ccache | ||
key: ccache-windows-winmsvc-${{ hashFiles('.github/workflows/windows.yml') }}-${{ hashFiles('cmake/dependencies/ABLASTR.cmake') }} | ||
restore-keys: | | ||
ccache-windows-winmsvc-${{ hashFiles('.github/workflows/windows.yml') }}- | ||
ccache-windows-winmsvc- | ||
- name: Build & Install | ||
run: | | ||
python3 -m pip install -U pip setuptools wheel pytest | ||
python3 -m pip install -r requirements.txt | ||
python3 -m pip install -r examples/requirements.txt | ||
cmake -S . -B build ` | ||
-DBUILD_SHARED_LIBS=OFF ` | ||
-DCMAKE_BUILD_TYPE=RelWithDebInfo ` | ||
-DCMAKE_VERBOSE_MAKEFILE=ON ` | ||
-DImpactX_COMPUTE=NOACC ` | ||
-DImpactX_MPI=OFF ` | ||
-DImpactX_PYTHON=ON | ||
if(!$?) { Exit $LASTEXITCODE } | ||
cmake --build build --config RelWithDebInfo --parallel 2 | ||
if(!$?) { Exit $LASTEXITCODE } | ||
cmake --build build --config RelWithDebInfo --target pip_install | ||
if(!$?) { Exit $LASTEXITCODE } | ||
ctest --test-dir build --build-config RelWithDebInfo --output-on-failure -E "(AMReX|py|pytest|analysis|plot)" | ||
if(!$?) { Exit $LASTEXITCODE } | ||
build_win_clang: | ||
name: Clang C++17 w/ OMP w/o MPI | ||
runs-on: windows-2019 | ||
if: github.event.pull_request.draft == false | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
name: Install Python | ||
with: | ||
python-version: '3.x' | ||
- name: CCache Cache | ||
uses: actions/cache@v2 | ||
# - once stored under a key, they become immutable (even if local cache path content changes) | ||
# - for a refresh the key has to change, e.g., hash of a tracked file in the key | ||
with: | ||
path: | | ||
~/.ccache | ||
~/.cache/ccache | ||
key: ccache-windows-winclang-${{ hashFiles('.github/workflows/windows.yml') }}-${{ hashFiles('cmake/dependencies/ABLASTR.cmake') }} | ||
restore-keys: | | ||
ccache-windows-winclang-${{ hashFiles('.github/workflows/windows.yml') }}- | ||
ccache-windows-winclang- | ||
- uses: seanmiddleditch/gha-setup-ninja@master | ||
- name: Build & Install | ||
shell: cmd | ||
run: | | ||
python3 -m pip install -U pip setuptools wheel pytest | ||
python3 -m pip install -r requirements.txt | ||
python3 -m pip install -r examples/requirements.txt | ||
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\vc\Auxiliary\build\vcvarsall.bat" x64 | ||
cmake -S . -B build ^ | ||
-G "Ninja" ^ | ||
-DCMAKE_C_COMPILER=clang-cl ^ | ||
-DCMAKE_CXX_COMPILER=clang-cl ^ | ||
-DBUILD_SHARED_LIBS=OFF ^ | ||
-DCMAKE_BUILD_TYPE=Release ^ | ||
-DCMAKE_VERBOSE_MAKEFILE=ON ^ | ||
-DImpactX_COMPUTE=OMP ^ | ||
-DImpactX_MPI=OFF ^ | ||
-DImpactX_PYTHON=ON | ||
if errorlevel 1 exit 1 | ||
cmake --build build --config Release --parallel 2 | ||
if errorlevel 1 exit 1 | ||
cmake --build build --config Release --target pip_install | ||
if errorlevel 1 exit 1 | ||
ctest --test-dir build --build-config Release --output-on-failure -E "(AMReX|py|pytest|analysis|plot)" | ||
if errorlevel 1 exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters