-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: Windows on GH Actions (MSVC, Clang)
Add two new builds on GH Actions: MSVC and Clang on Windows.
- Loading branch information
Showing
2 changed files
with
47 additions
and
1 deletion.
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,45 @@ | ||
name: windows | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build_win_msvc: | ||
name: MSVC w/o MPI | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Build & Test | ||
run: | | ||
md build | ||
cd build | ||
powershell.exe ..\share\openPMD\download_samples.ps1 | ||
cmake .. ` | ||
-DCMAKE_BUILD_TYPE=Debug | ||
cmake --build . --config Debug --parallel 2 | ||
ctest --output-on-failure --build-config Debug | ||
build_win_clang: | ||
name: Clang w/o MPI | ||
runs-on: windows-2019 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: seanmiddleditch/gha-setup-ninja@master | ||
- name: Build & Test | ||
shell: cmd | ||
run: | | ||
md build | ||
cd build | ||
Powershell.exe -File ..\share\openPMD\download_samples.ps1 | ||
if errorlevel 1 exit 1 | ||
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\vc\Auxiliary\build\vcvarsall.bat" x64 | ||
cmake .. ^ | ||
-G "Ninja" ^ | ||
-DCMAKE_C_COMPILER=clang-cl ^ | ||
-DCMAKE_CXX_COMPILER=clang-cl ^ | ||
-DCMAKE_BUILD_TYPE=Release ^ | ||
-DCMAKE_VERBOSE_MAKEFILE=ON | ||
if errorlevel 1 exit 1 | ||
cmake --build . --config Release --parallel 2 | ||
if errorlevel 1 exit 1 | ||
ctest --output-on-failure --build-config Release | ||
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