Merge https://github.com/Amazingkivas/FDTD_Method #103
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
name: Build application | |
on: [push, pull_request] | |
jobs: | |
windows-msvc-build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v1 | |
with: | |
submodules: 'recursive' | |
- name: Build FDTD | |
shell: bash | |
run: | | |
export CMAKE_BUILD_PARALLEL_LEVEL=4 | |
mkdir build | |
cd sln | |
cmake \ | |
-A x64 \ | |
-B ${PWD}/build | |
cmake --build ${PWD}/build --config Release | |
- name: Run tests | |
shell: bash | |
run: | | |
${PWD}/sln/build/test_FDTD_method/Release/test_FDTD_method.exe --gtest_repeat=2 --gtest_break_on_failure | |
linux-gcc-build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
with: | |
submodules: 'recursive' | |
- name: Build FDTD with GCC | |
shell: bash | |
run: | | |
export CMAKE_BUILD_PARALLEL_LEVEL=4 | |
mkdir build | |
cd sln | |
cmake \ | |
-DCMAKE_C_COMPILER=gcc \ | |
-DCMAKE_CXX_COMPILER=g++ \ | |
-B ${PWD}/build | |
cmake --build ${PWD}/build --config Release | |
find ${PWD}/build -name test_FDTD_method | |
- name: Run tests with GCC | |
shell: bash | |
run: | | |
${PWD}/sln/build/test_FDTD_method/test_FDTD_method --gtest_repeat=2 --gtest_break_on_failure |