diff options
-rwxr-xr-x | .github/workflows/dependencies/gcc.sh | 17 | ||||
-rw-r--r-- | .github/workflows/ubuntu.yml | 19 |
2 files changed, 36 insertions, 0 deletions
diff --git a/.github/workflows/dependencies/gcc.sh b/.github/workflows/dependencies/gcc.sh new file mode 100755 index 000000000..944169ea0 --- /dev/null +++ b/.github/workflows/dependencies/gcc.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env bash +# +# Copyright 2021 The WarpX Community +# +# License: BSD-3-Clause-LBNL +# Authors: Axel Huebl + +set -eu -o pipefail + +sudo apt-get -qqq update +sudo apt-get install -y \ + build-essential \ + ca-certificates \ + cmake \ + gnupg \ + pkg-config \ + wget diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 4dd5ef86f..9d3da9439 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -3,6 +3,25 @@ name: Ubuntu build on: [push, pull_request] jobs: + build_minimal: + name: GCC Minimal w/o MPI [Linux] + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + - name: install dependencies + run: | + .github/workflows/dependencies/gcc.sh + - name: build WarpX + run: | + cmake -S . -B build \ + -DCMAKE_VERBOSE_MAKEFILE=ON \ + -DWarpX_MPI=OFF \ + -DWarpX_QED=OFF + cmake --build build -j 2 + + python3 -m pip install --upgrade pip setuptools wheel + python3 -m pip install -v . + # Ref.: # https://gitlab.com/nvidia/container-images/cuda/-/blob/master/dist/ubuntu18.04/10.1/base/Dockerfile # https://github.com/ComputationalRadiationPhysics/picongpu/blob/0.5.0/share/picongpu/dockerfiles/ubuntu-1604/Dockerfile |