Skip to content

Export of internal changes #39

Export of internal changes

Export of internal changes #39

Workflow file for this run

name: CI
# Controls when the action will run. Triggers the workflow on push or pull request
# events.
on:
push:
pull_request:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
# Build on multiple systems: https://docs.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow#configuring-a-build-matrix
strategy:
fail-fast: false
matrix:
compiler: [g++-12, clang++-13]
config: [release, debug]
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Setup Boost 1.75.0
shell: bash
run: |
curl -L https://boostorg.jfrog.io/artifactory/main/release/1.75.0/source/boost_1_75_0.zip --output boost_1_75_0.zip
unzip -q boost_1_75_0.zip
- name: CMake configure
if: matrix.config == 'debug'
run: cmake -S . -B build -DBoost_INCLUDE_DIR=$GITHUB_WORKSPACE/boost_1_75_0/ -DBoost_LIBRARY_DIR=$GITHUB_WORKSPACE/boost_1_75_0/
env:
CXX: ${{ matrix.compiler }}
- name: CMake configure
if: matrix.config == 'release'
run: cmake -S . -B build -D CMAKE_BUILD_TYPE=Release -DBoost_INCLUDE_DIR=$GITHUB_WORKSPACE/boost_1_75_0/ -DBoost_LIBRARY_DIR=$GITHUB_WORKSPACE/boost_1_75_0/
env:
CXX: ${{ matrix.compiler }}
- name: Compile
run: cmake --build build
- name: Run
run: cmake --build build --target test