Skip to content

refactor: update build and sonar configuration #7

refactor: update build and sonar configuration

refactor: update build and sonar configuration #7

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
- master
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-test:
name: Build and test (${{ matrix.os }})
runs-on: ${{ matrix.os }}
permissions:
contents: read
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install dependencies (Ubuntu)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y libcurl4-openssl-dev
- name: Configure
run: |
cmake -S . -B build -DSSLLABS_BUILD_TESTS=ON -DSSLLABS_BUILD_TOOLS=ON
- name: Build
run: |
cmake --build build --config Release --parallel
- name: Run tests
run: |
ctest --test-dir build --build-config Release --output-on-failure