Skip to content

[WIP] CMake: Replace FetchContent_Populate #537

[WIP] CMake: Replace FetchContent_Populate

[WIP] CMake: Replace FetchContent_Populate #537

Workflow file for this run

name: windows
on: [push, pull_request]
jobs:
# Build all tutorials
tests_msvc:
name: MSVC C++17 w/o Fortran w/o MPI
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Build & Install
run: |
cd ExampleCodes
cmake -S . -B build `
-DCMAKE_BUILD_TYPE=Debug `
-DBUILD_SHARED_LIBS=ON `
-DCMAKE_VERBOSE_MAKEFILE=ON `
-DAMReX_FORTRAN=OFF `
-DAMReX_MPI=OFF `
-DAMReX_LINEAR_SOLVERS=ON `
-DAMReX_EB=ON `
-DAMReX_PARTICLES=ON
cmake --build build --config Debug -j 2
# Build all tutorials
tutorials_clang:
name: Clang C++17 w/o Fortran w/o MPI
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Build & Install
shell: cmd
env:
CMAKE_GENERATOR_TOOLSET: "ClangCl"
CMAKE_GENERATOR: "Visual Studio 17 2022"
run: |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\vc\Auxiliary\build\vcvarsall.bat" x64
cd ExampleCodes
cmake -S . -B build ^
-DCMAKE_BUILD_TYPE=Release ^
-DBUILD_SHARED_LIBS=ON ^
-DCMAKE_VERBOSE_MAKEFILE=ON ^
-DAMReX_FORTRAN=OFF ^
-DAMReX_MPI=OFF ^
-DAMReX_OMP=ON ^
-DAMReX_LINEAR_SOLVERS=ON ^
-DAMReX_EB=ON ^
-DAMReX_PARTICLES=ON
cmake --build build --config Release -j 2