diff options
author | 2021-07-15 15:56:55 -0700 | |
---|---|---|
committer | 2021-07-15 15:56:55 -0700 | |
commit | f5cc0c43c9c85cf8fd1c483ed737ccb683bb4964 (patch) | |
tree | 281dc7bb48c075f3f691904c98767e71413db330 /.github/workflows | |
parent | 300c1659c4bcdae104f828c01de8873743f73d94 (diff) | |
download | WarpX-f5cc0c43c9c85cf8fd1c483ed737ccb683bb4964.tar.gz WarpX-f5cc0c43c9c85cf8fd1c483ed737ccb683bb4964.tar.zst WarpX-f5cc0c43c9c85cf8fd1c483ed737ccb683bb4964.zip |
CI: -Werror (#1457)
Compile with `-Werror` to avoid new warnings slipping into the code base.
Diffstat (limited to '')
-rw-r--r-- | .github/workflows/cuda.yml | 1 | ||||
-rw-r--r-- | .github/workflows/hip.yml | 1 | ||||
-rw-r--r-- | .github/workflows/intel.yml | 2 | ||||
-rw-r--r-- | .github/workflows/macos.yml | 1 | ||||
-rw-r--r-- | .github/workflows/ubuntu.yml | 1 |
5 files changed, 6 insertions, 0 deletions
diff --git a/.github/workflows/cuda.yml b/.github/workflows/cuda.yml index b9ef16fa1..31cf244d6 100644 --- a/.github/workflows/cuda.yml +++ b/.github/workflows/cuda.yml @@ -10,6 +10,7 @@ jobs: build_nvcc: name: NVCC 11.0.2 SP runs-on: ubuntu-18.04 + env: {CXXFLAGS: "-Werror"} steps: - uses: actions/checkout@v2 - name: install dependencies diff --git a/.github/workflows/hip.yml b/.github/workflows/hip.yml index 57a27e00d..833ed71f4 100644 --- a/.github/workflows/hip.yml +++ b/.github/workflows/hip.yml @@ -6,6 +6,7 @@ jobs: build_hip: name: HIP SP runs-on: ubuntu-20.04 + env: {CXXFLAGS: "-Werror -Wno-deprecated-declarations"} steps: - uses: actions/checkout@v2 - name: install dependencies diff --git a/.github/workflows/intel.yml b/.github/workflows/intel.yml index 7fca2ce20..8ec77ea01 100644 --- a/.github/workflows/intel.yml +++ b/.github/workflows/intel.yml @@ -58,6 +58,7 @@ jobs: build_icpx: name: oneAPI ICX SP runs-on: ubuntu-20.04 + env: {CXXFLAGS: "-Werror -Wno-error=pass-failed"} steps: - uses: actions/checkout@v2 - name: install dependencies @@ -97,6 +98,7 @@ jobs: build_dpcc: name: oneAPI DPC++ SP runs-on: ubuntu-20.04 + env: {CXXFLAGS: "-Werror"} steps: - uses: actions/checkout@v2 - name: install dependencies diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 8f8af555d..53142fbd7 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -6,6 +6,7 @@ jobs: build_gcc9: name: AppleClang runs-on: macos-latest + env: {CXXFLAGS: "-Werror -Wno-error=pass-failed"} steps: - uses: actions/checkout@v2 - name: install dependencies diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index c5c37380f..e62cb6007 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -43,6 +43,7 @@ jobs: export WarpX_QED_TABLE_GEN=ON export CC=$(which clang) export CXX=$(which clang++) + export CXXFLAGS="-Werror -Wno-error=pass-failed" python3 -m pip install -v . - name: run pywarpx |