Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Amazingkivas authored Oct 26, 2024
1 parent 2fb4540 commit 40bcc38
Showing 1 changed file with 14 additions and 21 deletions.
35 changes: 14 additions & 21 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,26 @@ 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
cmake \
-A x64 \
-B ${PWD}/build
cmake --build ${PWD}/build --config Release
find ${PWD}/build -name test_FDTD_method
- name: Run tests
shell: bash
run: |
${PWD}/build/sln/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 Kokkos with OpenMP
shell: bash
run: |
cd 3rdparty/kokkos
mkdir build
cd build
cmake .. \
-DCMAKE_CXX_COMPILER=g++ \
-DCMAKE_C_COMPILER=gcc \
-DKokkos_ENABLE_OPENMP=ON
make -j4
cd ../../..
- name: Build FDTD with GCC
shell: bash
run: |
Expand Down

0 comments on commit 40bcc38

Please sign in to comment.