Skip to content

Commit 3e8aa75

Browse files
authored
Merge pull request #97 from OpenSEMBA/feature/smbjson
Removing type in material association
2 parents bb53750 + a55c1f7 commit 3e8aa75

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+493
-834
lines changed

.github/workflows/ubuntu-gnu.yml

Lines changed: 0 additions & 68 deletions
This file was deleted.

.github/workflows/ubuntu-intel.yml

Lines changed: 0 additions & 69 deletions
This file was deleted.

.github/workflows/ubuntu-intelLLVM.yml

Lines changed: 0 additions & 68 deletions
This file was deleted.

.github/workflows/ubuntu-nvidia.yml

Lines changed: 0 additions & 66 deletions
This file was deleted.

.github/workflows/ubuntu.yml

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
name: ubuntu
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
- dev
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
15+
builds-and-test:
16+
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
compiler: [
20+
{name: 'intel', version: '2024.2'},
21+
{name: 'gcc', version: 11}
22+
]
23+
build-type: ["Debug", "Release"]
24+
mpi: ["Yes", "No"]
25+
mtln: ["Yes"]
26+
hdf: ["Yes"]
27+
28+
include:
29+
- compiler: {name: 'intel-classic', version: '2021.10'}
30+
build-type: "Release"
31+
mpi: "No"
32+
mtln: "No"
33+
hdf: "Yes"
34+
- compiler: {name: 'nvidia-hpc', version: '24.5'}
35+
build-type: "Release"
36+
mpi: "No"
37+
mtln: "No"
38+
hdf: "No"
39+
40+
41+
fail-fast: false
42+
43+
name: ${{matrix.compiler.name}}-${{matrix.build-type}}-mpi(${{matrix.mpi}})-mtln(${{matrix.mtln}})-hdf(${{matrix.hdf}})
44+
45+
steps:
46+
- name: Checkout
47+
uses: actions/checkout@v4
48+
with:
49+
submodules: 'recursive'
50+
51+
52+
- name: Install python wrapper requirements
53+
run: python -m pip install -r requirements.txt
54+
55+
- name: Setup MPI
56+
if: matrix.mpi=='Yes' && matrix.compiler.name=='intel'
57+
uses: mpi4py/setup-mpi@v1
58+
with:
59+
mpi: 'intelmpi'
60+
61+
- name: Install gcc required packages
62+
if: matrix.compiler.name=='gcc'
63+
run: |
64+
sudo apt update
65+
sudo apt install libhdf5-dev libopenmpi-dev
66+
67+
- name: Setup fortran compiler
68+
uses: fortran-lang/setup-fortran@v1
69+
id: setup-fortran
70+
with:
71+
compiler: ${{matrix.compiler.name}}
72+
version: ${{matrix.compiler.version}}
73+
74+
- name: Build application
75+
run: |
76+
cmake -S . -B build \
77+
-DCMAKE_BUILD_TYPE=${{matrix.build-type}} \
78+
-DSEMBA_FDTD_ENABLE_MPI=${{matrix.mpi}} \
79+
-DSEMBA_FDTD_ENABLE_HDF=${{matrix.hdf}} \
80+
-DSEMBA_FDTD_ENABLE_MTLN=${{matrix.mtln}}
81+
cmake --build build -j
82+
83+
- name: Run unit tests
84+
run: build/bin/fdtd_tests
85+
86+
- name: Run python tests
87+
env:
88+
SEMBA_FDTD_ENABLE_MTLN: ${{ matrix.mtln }}
89+
SEMBA_FDTD_ENABLE_HDF: ${{ matrix.hdf }}
90+
run: python -m pytest test/
91+
92+
93+

0 commit comments

Comments
 (0)