forked from ECP-WarpX/WarpX
-
Notifications
You must be signed in to change notification settings - Fork 3
33 lines (29 loc) · 852 Bytes
/
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
30
31
32
33
name: macOS build
on: [push, pull_request]
jobs:
build_gcc9:
name: AppleClang [macOS]
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: install dependencies
run: |
set +e
rm -rf /usr/local/bin/2to3
brew update
brew install fftw
brew install libomp
brew install open-mpi
brew install pkg-config
set -e
brew tap openpmd/openpmd
brew install openpmd-api
- name: build WarpX
run: |
mkdir build_dp && cd build_dp
cmake .. -DCMAKE_VERBOSE_MAKEFILE=ON -DWarpX_OPENPMD=ON -DWarpX_openpmd_internal=OFF
make -j 2
cd ..
mkdir build_sp && cd build_sp
cmake .. -DCMAKE_VERBOSE_MAKEFILE=ON -DWarpX_OPENPMD=ON -DWarpX_openpmd_internal=OFF -DWarpX_PRECISION=SINGLE
make -j 2