Skip to content

Commit

Permalink
Initial CI work.
Browse files Browse the repository at this point in the history
  • Loading branch information
bluescarni committed Oct 13, 2024
1 parent 04ddf97 commit c50b117
Show file tree
Hide file tree
Showing 7 changed files with 70 additions and 66 deletions.
63 changes: 32 additions & 31 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,45 @@
version: 2.1

jobs:
focal_gcc9_docs:
# focal_gcc9_docs:
# docker:
# - image: circleci/buildpack-deps:focal
# steps:
# - checkout
# - run:
# name: Build and test
# command: bash ./tools/circleci_focal_gcc9_docs.sh
# focal_gcc9_coverage:
# docker:
# - image: circleci/buildpack-deps:focal
# steps:
# - checkout
# - run:
# name: Build and test
# command: bash ./tools/circleci_focal_gcc9_coverage.sh
# focal_gcc9_ubsan:
# docker:
# - image: circleci/buildpack-deps:focal
# steps:
# - checkout
# - run:
# name: Build and test
# command: bash ./tools/circleci_focal_gcc9_ubsan.sh
conda_asan:
docker:
- image: circleci/buildpack-deps:focal
- image: cimg/base:current
resource_class: large
steps:
- checkout
- run:
name: Build and test
command: bash ./tools/circleci_focal_gcc9_docs.sh
focal_gcc9_coverage:
docker:
- image: circleci/buildpack-deps:focal
steps:
- checkout
- run:
name: Build and test
command: bash ./tools/circleci_focal_gcc9_coverage.sh
focal_gcc9_ubsan:
docker:
- image: circleci/buildpack-deps:focal
steps:
- checkout
- run:
name: Build and test
command: bash ./tools/circleci_focal_gcc9_ubsan.sh
focal_gcc9_asan:
docker:
- image: circleci/buildpack-deps:focal
steps:
- checkout
- run:
name: Build and test
command: bash ./tools/circleci_focal_gcc9_asan.sh
command: bash ./tools/conda_asan.sh

workflows:
version: 2.1
all_builds:
jobs:
- focal_gcc9_docs
- focal_gcc9_coverage
- focal_gcc9_ubsan
- focal_gcc9_asan
# - focal_gcc9_docs
# - focal_gcc9_coverage
# - focal_gcc9_ubsan
- conda_asan
34 changes: 0 additions & 34 deletions tools/circleci_focal_gcc9_asan.sh

This file was deleted.

38 changes: 38 additions & 0 deletions tools/conda_asan.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/usr/bin/env bash

# Echo each command
set -x

# Exit on error.
set -e

wget https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh -O miniconda.sh
export deps_dir=$HOME/local
export PATH="$HOME/miniconda/bin:$PATH"
bash miniconda.sh -b -p $HOME/miniconda
conda create -y -p $deps_dir cmake c-compiler cxx-compiler fmt backtrace mppp \
libboost-devel libabseil tbb-devel ninja
source activate $deps_dir

# Create the build dir and cd into it.
mkdir build
cd build

# Clear the compilation flags set up by conda.
unset CXXFLAGS
unset CFLAGS

cmake ../ -G Ninja \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_PREFIX_PATH=$deps_dir \
-DOBAKE_BUILD_TESTS=YES \
-DCMAKE_CXX_FLAGS="-fsanitize=address" \
-DOBAKE_WITH_LIBBACKTRACE=YES \
-DCMAKE_CXX_FLAGS_DEBUG="-g -Og"

ninja -v

ctest -VV -j4

set +e
set +x
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion tools/lsan.supp

This file was deleted.

0 comments on commit c50b117

Please sign in to comment.