forked from ECP-WarpX/picsar
-
Notifications
You must be signed in to change notification settings - Fork 2
29 lines (26 loc) · 1.02 KB
/
macos.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: macos
on: [push, pull_request]
env:
CXX: "/usr/local/opt/llvm/bin/clang++"
LDFLAGS: "-L/usr/local/opt/llvm/lib"
CXXFLAGS: "-I/usr/local/opt/llvm/include -Werror -Wshadow -Woverloaded-virtual -Wunreachable-code -fsanitize=address -fsanitize=undefined"
jobs:
# Build PICSAR tests, PICSAR python bindings, and Kokkos examples
tutorials-macos:
name: QED with tests, python bindings, Kokkos examples
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- name: Dependencies
run: .github/workflows/dependencies/dependencies_mac.sh
- name: Build & Test
run: |
cmake -S multi_physics/QED \
-B build \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DPXRMP_QED_TEST=ON \
-DPXRMP_KOKKOS_EXAMPLE=ON \
-DKokkos_ENABLE_OPENMP=ON \
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
cmake --build build -j 2
cmake --build build --target test