Skip to content

Modernize CMake practices and bump version to 2.2.3 #170

Modernize CMake practices and bump version to 2.2.3

Modernize CMake practices and bump version to 2.2.3 #170

Workflow file for this run

name: Build and Test
on:
push:
branches:
- master
pull_request:
branches:
- master
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
linux:
# The jobs should run pretty quick; anything over 30m essentially means
# someting is stuck somewhere
timeout-minutes: 30
runs-on: ubuntu-latest
container: ${{ matrix.container }}
env:
GH_YML_JOBNAME: ${{ matrix.os }}-${{ matrix.compiler }}
GH_YML_BUILDTYPE: ${{ matrix.buildtype }}
GH_YML_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
strategy:
fail-fast: false
matrix:
buildtype: [ release, debug ]
os: [ alma9, ubuntu2204, ubuntu2404 ]
compiler: [ clang, gcc ]
exclude:
- { os: alma9, compiler: nvhpc }
include:
- os: alma9
container: almalinux:9
- os: ubuntu2404
container: ubuntu:24.04
- os: ubuntu2204
container: ubuntu:22.04
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
path: source
- name: Setup
run: source/scripts/ci/setup/linux.sh
- name: Update
run: source/scripts/ci/gh-actions/run.sh update
- name: Configure
run: source/scripts/ci/gh-actions/run.sh configure
- name: Build
run: source/scripts/ci/gh-actions/run.sh build
- name: Test
run: source/scripts/ci/gh-actions/run.sh test
mac_and_windows:
# The jobs should run pretty quick; anything over 30m essentially means
# someting is stuck somewhere
timeout-minutes: 30
runs-on: ${{ matrix.vm }}
env:
GH_YML_JOBNAME: ${{ matrix.jobname }}
GH_YML_BUILDTYPE: ${{ matrix.buildtype }}
GH_YML_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
strategy:
fail-fast: false
matrix:
buildtype: [ release, debug ]
jobname: [
windows2019-vs2019-clang,
windows2022-vs2022-msvc,
macos-clang ]
include:
- jobname: windows2019-vs2019-clang
vm: windows-latest
- jobname: macos-clang
vm: macos-latest
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
path: source
- name: Setup
if: ${{ runner.os == 'Windows' }}
run: source/scripts/ci/setup/windows.sh
- name: Setup
if: ${{ runner.os == 'macOS' }}
run: source/scripts/ci/setup/macos.sh
- name: Update
run: source/scripts/ci/gh-actions/run.sh update
- name: Configure
run: source/scripts/ci/gh-actions/run.sh configure
- name: Build
run: source/scripts/ci/gh-actions/run.sh build
- name: Test
run: source/scripts/ci/gh-actions/run.sh test