Skip to content

Commit

Permalink
revert changes to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
HDembinski committed Apr 23, 2024
1 parent 4f28729 commit 79f8bb7
Show file tree
Hide file tree
Showing 4 changed files with 158 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
cov:
runs-on: macos-11
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v2
- name: Fetch Boost superproject
run: |
cd ..
Expand Down
44 changes: 44 additions & 0 deletions .github/workflows/fast.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Fast

on:
pull_request:
branches:
- master
- develop
paths-ignore:
- 'doc/**'
- 'examples/**'
- 'tools/**'
- '*.md'
push:
branches:
- master
- develop
paths-ignore:
- 'doc/**'
- 'examples/**'
- 'tools/**'
- '*.md'

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true

jobs:
cmake:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
fail-fast: true
steps:
- uses: actions/checkout@v2
- name: prepare build
run: |
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Debug ..
- name: test
run: |
cd build
cmake --build . --target check -j3
110 changes: 110 additions & 0 deletions .github/workflows/slow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
name: Slow

on:
pull_request:
branches:
- master
- develop
paths-ignore:
- 'doc/**'
- 'tools/**'
- '*.md'

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true

env:
B2_OPTS: -q -j2 warnings-as-errors=on
UBSAN_OPTIONS: print_stacktrace=1
LSAN_OPTIONS: verbosity=1:log_threads=1
ASAN_OPTIONS: detect_leaks=1:detect_stack_use_after_return=1
COVERALLS_TOKEN: ${{ secrets.COVERALLS_TOKEN }}

jobs:
appleclang:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Fetch Boost superproject
run: |
cd ..
git clone -b $GITHUB_BASE_REF --depth 5 https://github.com/boostorg/boost.git
cd boost
mv -f $GITHUB_WORKSPACE/* libs/histogram
git submodule update --init --depth 5 tools/build tools/boostdep
python tools/boostdep/depinst/depinst.py --git_args "--depth 5 --jobs 3" histogram
mv -f * $GITHUB_WORKSPACE
- name: Prepare b2
run: ./bootstrap.sh
- name: Test cxxstd=14 exception-handling=off rtti=off
run: |
cd libs/histogram
../../b2 $B2_OPTS cxxstd=14 exception-handling=off rtti=off test//minimal
- name: Test cxxstd=17
run: |
cd libs/histogram
../../b2 $B2_OPTS cxxstd=17 test//all
gcc5:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: egor-tensin/setup-gcc@v1
with:
version: 5
- name: Fetch Boost superproject
run: |
cd ..
git clone -b $GITHUB_BASE_REF --depth 5 https://github.com/boostorg/boost.git
cd boost
mv -f $GITHUB_WORKSPACE/* libs/histogram
git submodule update --init --depth 5 tools/build tools/boostdep
python tools/boostdep/depinst/depinst.py --git_args "--depth 5 --jobs 3" histogram
mv -f * $GITHUB_WORKSPACE
- name: Prepare b2
run: ./bootstrap.sh
- name: Test cxxstd=14 (warnings ignored)
run: |
cd libs/histogram
../../b2 -q -j2 toolset=gcc-5 cxxstd=14 test//all examples
gcc10:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Fetch Boost superproject
run: |
cd ..
git clone -b $GITHUB_BASE_REF --depth 5 https://github.com/boostorg/boost.git
cd boost
mv -f $GITHUB_WORKSPACE/* libs/histogram
git submodule update --init --depth 5 tools/build tools/boostdep
python tools/boostdep/depinst/depinst.py --git_args "--depth 5 --jobs 3" histogram
mv -f * $GITHUB_WORKSPACE
- name: Prepare b2
run: ./bootstrap.sh
- name: Test cxxstd=20 -O3 -funsafe-math-optimizations
run: |
cd libs/histogram
../../b2 $B2_OPTS toolset=gcc-10 cxxstd=20 cxxflags="-O3 -funsafe-math-optimizations" test//all examples
clang14:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Fetch Boost superproject
run: |
cd ..
git clone -b $GITHUB_BASE_REF --depth 5 https://github.com/boostorg/boost.git
cd boost
mv -f $GITHUB_WORKSPACE/* libs/histogram
git submodule update --init --depth 5 tools/build tools/boostdep
python tools/boostdep/depinst/depinst.py --git_args "--depth 5 --jobs 3" histogram
mv -f * $GITHUB_WORKSPACE
- name: Prepare b2
run: ./bootstrap.sh
- name: Test cxxstd=17 ubsan asan
run: |
cd libs/histogram
../../b2 $B2_OPTS toolset=clang-14 cxxstd=17 variant=histogram_ubasan test//all
7 changes: 3 additions & 4 deletions .github/workflows/superproject_cmake.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: superproject cmake

on:
pull_request:
push:
branches:
- master
Expand All @@ -15,13 +14,13 @@ jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v2
- name: Fetch Boost superproject
run: |
cd ..
git clone -b $GITHUB_BASE_REF --depth=5 https://github.com/boostorg/boost.git
git clone -b $GITHUB_BASE_REF --depth 5 https://github.com/boostorg/boost.git
cd boost
git submodule update --init --depth=5
git submodule update --init --depth 5
rm -rf libs/histogram/*
mv -f $GITHUB_WORKSPACE/* libs/histogram
mv -f * $GITHUB_WORKSPACE
Expand Down

0 comments on commit 79f8bb7

Please sign in to comment.