Skip to content

Support for timestamps #362

Support for timestamps

Support for timestamps #362

Workflow file for this run

name: OSX
on:
workflow_dispatch:
pull_request:
push:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.job }}-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash -e -l {0}
jobs:
build:
runs-on: macos-${{ matrix.os }}
name: ${{ matrix.os }}-${{ matrix.config.name }}
strategy:
fail-fast: false
matrix:
os:
- 14
config:
- { name: Debug }
- { name: Release }
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Add specification for clang and clang++ in the conda environment specification
run: |
echo " - clangxx==17.0.6" >> environment-dev.yml
- name: Set conda environment
uses: mamba-org/setup-micromamba@main
with:
environment-name: myenv
environment-file: environment-dev.yml
init-shell: bash
cache-downloads: true
- name: Set CC and CXX to use clang and clang++
run: |
echo "CXX=$CONDA_PREFIX/bin/clang++" >> $GITHUB_ENV
echo "CMAKE_C_COMPILER=$CONDA_PREFIX/bin/clang" >> $GITHUB_ENV
# Use libstdc++
echo "CXXFLAGS=-stdlib=libstdc++ -L$CONDA_PREFIX/lib" >> $GITHUB_ENV
echo "LDFLAGS=-stdlib=libstdc++" >> $GITHUB_ENV
- name: Configure using CMake
run: cmake -Bbuild -DCMAKE_BUILD_TYPE:STRING=${{matrix.config.name}} -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -DBUILD_TESTS=ON
- name: Install
working-directory: build
run: cmake --install . --config ${{matrix.config.name}}
- name: Build
working-directory: build
run: cmake --build . --config ${{matrix.config.name}} --target test_sparrow_lib --parallel 8
- name: Run tests
working-directory: build
run: ctest -C ${{matrix.config.name}} --output-on-failure