diff options
-rw-r--r-- | .github/workflows/macos.yml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml new file mode 100644 index 000000000..68896f90c --- /dev/null +++ b/.github/workflows/macos.yml @@ -0,0 +1,30 @@ +name: macOS build + +on: [push, pull_request] + +jobs: + build_gcc9: + name: AppleClang [macOS] + runs-on: macos-latest + steps: + - uses: actions/checkout@v2 + with: + path: 'warpx_directory/WarpX' + - name: install dependencies + run: | + brew install cmake + brew install fftw + brew install libomp + brew install open-mpi + brew install pkg-config + brew tap openpmd/openpmd + brew install openpmd-api + - name: build WarpX + run: | + cd warpx_directory + git clone --depth 1 https://bitbucket.org/berkeleylab/picsar.git + git clone --depth 1 --branch development https://github.com/AMReX-Codes/amrex.git + cd WarpX + export LDFLAGS="-lomp" + make -j 2 COMP=llvm USE_OMP=FALSE USE_OPENPMD=TRUE XTRA_CXXFLAGS="-Xpreprocessor -fopenmp" + |