Skip to content

use host-configs

use host-configs #2391

Workflow file for this run

on: push
name: Build
jobs:
build_docker:
strategy:
matrix:
target: [gcc12, gcc12_debug, gcc13, gcc13_desul, clang19_debug, clang19_style, clang19_desul, intel2024_2, intel2024_2_debug, intel2024_2_sycl, rocm6_4_3_desul]
runs-on: ubuntu-latest
steps:
- run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/ghc
sudo rm -rf /opt/hostedtoolcache/CodeQL
sudo docker image prune --all --force
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: docker/setup-buildx-action@v3
- uses: docker/build-push-action@v6
with:
target: ${{ matrix.target }}
build_mac:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
## Back off version of cmake with known issue
- name: Install CMake 3.29
uses: lukka/get-cmake@e6906078ebd1ccb8ce51ab4626ac46a1b5a517e3 # v4.4.0
with:
cmakeVersion: "~3.29.0"
- uses: threeal/cmake-action@v1.3.0
with:
build-dir: build
options:
CMAKE_CXX_STANDARD=20
ENABLE_OPENMP=Off
CMAKE_BUILD_TYPE=Release
run-build: true
build-args: '--parallel 16'
- uses: threeal/ctest-action@v1.1.0
build_windows:
strategy:
matrix:
shared:
- args:
BUILD_SHARED_LIBS=On
CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=On
- args: BUILD_SHARED_LIBS=Off
# Notes on Windows CI
# The windows-2025 runner has converted to Visual Studio (VS) 2026.
# cmake added VS 2026 support in cmake v4.2, we had issues with cmake 4.4 related to JSON parsing.
# Testing is currently done on the windows-2022 runner with VS 2022 until the issue can
# be resolved.
runs-on: windows-2022
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
## Back off version of cmake with known issue
- name: Install CMake 3.29
uses: lukka/get-cmake@e6906078ebd1ccb8ce51ab4626ac46a1b5a517e3 # v4.4.0
with:
cmakeVersion: "~3.29.0"
## ====================================
## Config and build action
- uses: threeal/cmake-action@v1.3.0
with:
build-dir: build
generator: 'Visual Studio 17 2022' # force VS generator so MSVC is used instead of NMake
options:
ENABLE_WARNINGS_AS_ERRORS=Off
BLT_CXX_STD="c++20"
CMAKE_CXX_STANDARD=20
CMAKE_BUILD_TYPE=Release
${{ matrix.shared.args }}
run-build: true
build-args: '--parallel 16'
## ====================================
## Print the contents of the test directory in the build space (debugging)
## - run: |
## dir -r D:\a\RAJA\RAJA\build\test
## ====================================
## Run tests action
- uses: threeal/ctest-action@v1.1.0
with:
build-config: Debug