Correct the name of the sonar token secret. #177
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI Build & Test | |
# Triggers the workflow on push or pull request events | |
on: [push, pull_request] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
include: | |
# macOS builds | |
# ~~~~~~~~~~~~ | |
- name: macOS-latest/Xcode/Debug | |
build_type: Debug | |
generator: Xcode | |
os: macos-latest | |
- name: macOS-latest/Xcode/Release | |
build_type: Release | |
generator: Xcode | |
os: macos-latest | |
# Ubuntu builds | |
# ~~~~~~~~~~~~~ | |
- name: Ubuntu-latest/gcc-13/Debug | |
build_type: Debug | |
cxx_compiler: -DCMAKE_CXX_COMPILER=g++-13 -DCMAKE_C_COMPILER=gcc-13 | |
generator: Unix Makefiles | |
os: ubuntu-latest | |
- name: Ubuntu-latest/gcc-13/Release | |
build_type: Release | |
cxx_compiler: -DCMAKE_CXX_COMPILER=g++-13 -DCMAKE_C_COMPILER=gcc-13 | |
generator: Unix Makefiles | |
os: ubuntu-latest | |
- name: Ubuntu-latest/gcc-13/Release/masm=Intel | |
build_type: Release | |
cxx_compiler: -DCMAKE_CXX_COMPILER=g++-13 -DCMAKE_C_COMPILER=gcc-13 | |
generator: Unix Makefiles | |
options: '-DINTEL_DIALECT=Yes' | |
os: ubuntu-latest | |
- name: Ubuntu-latest/clang-15/Debug | |
build_type: Debug | |
cxx_compiler: -DCMAKE_CXX_COMPILER=clang++-15 -DCMAKE_C_COMPILER=clang-15 | |
generator: Unix Makefiles | |
options: '-DCMAKE_EXE_LINKER_FLAGS=-fuse-ld=gold' | |
os: ubuntu-latest | |
- name: Ubuntu-latest/clang-15/Release | |
build_type: Release | |
cxx_compiler: -DCMAKE_CXX_COMPILER=clang++-15 -DCMAKE_C_COMPILER=clang-15 | |
generator: Unix Makefiles | |
options: '-DCMAKE_EXE_LINKER_FLAGS=-fuse-ld=gold' | |
os: ubuntu-latest | |
# Use of masm=intel with clang requires at least version 14. | |
- name: Ubuntu-22.04/clang-14/Release/masm=Intel | |
build_type: Release | |
cxx_compiler: -DCMAKE_CXX_COMPILER=clang++-14 -DCMAKE_C_COMPILER=clang-14 | |
generator: Unix Makefiles | |
options: '-DINTEL_DIALECT=Yes -DCMAKE_EXE_LINKER_FLAGS=-fuse-ld=gold' | |
os: ubuntu-22.04 | |
# Windows builds | |
# ~~~~~~~~~~~~~~ | |
- name: Windows-latest/VS2022/Debug | |
build_type: Debug | |
generator: Visual Studio 17 2022 | |
os: windows-latest | |
- name: Windows-latest/VS2022/Release | |
build_type: Release | |
generator: Visual Studio 17 2022 | |
os: windows-latest | |
name: ${{ matrix.name }} | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: 'True' | |
- name: Install Dependencies (Linux) | |
if: startsWith (matrix.os, 'ubuntu-') && matrix.apt_install != '' | |
run: sudo apt-get update && sudo apt-get install -y ${{ matrix.apt_install }} | |
- name: Create Build Environment | |
run: cmake -E make_directory ${{ runner.workspace }}/build | |
- name: Configure CMake | |
shell: bash | |
run: | | |
cmake -S "$GITHUB_WORKSPACE" \ | |
-B "${{ runner.workspace }}/build" \ | |
-G "${{ matrix.generator }}" \ | |
-D CMAKE_BUILD_TYPE=${{ matrix.build_type }} \ | |
-D WERROR=Yes \ | |
${{ matrix.cxx_compiler }} \ | |
${{ matrix.options }} | |
- name: Build | |
shell: bash | |
run: cmake --build "${{ runner.workspace }}/build" --config ${{ matrix.build_type }} | |