forked from boostorg/logic
Update CI to 2024.12 spec, update README
This commit is contained in:
@@ -33,6 +33,12 @@ branches:
|
|||||||
- /fix\/.*/
|
- /fix\/.*/
|
||||||
- /pr\/.*/
|
- /pr\/.*/
|
||||||
|
|
||||||
|
skip_commits:
|
||||||
|
files:
|
||||||
|
- LICENSE
|
||||||
|
- meta/*
|
||||||
|
- README.md
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
fast_finish: false
|
fast_finish: false
|
||||||
# Adding MAYFAIL to any matrix job allows it to fail but the build stays green:
|
# Adding MAYFAIL to any matrix job allows it to fail but the build stays green:
|
||||||
@@ -41,7 +47,6 @@ matrix:
|
|||||||
|
|
||||||
environment:
|
environment:
|
||||||
global:
|
global:
|
||||||
SELF: logic
|
|
||||||
B2_CI_VERSION: 1
|
B2_CI_VERSION: 1
|
||||||
GIT_FETCH_JOBS: 4
|
GIT_FETCH_JOBS: 4
|
||||||
# see: http://www.boost.org/build/doc/html/bbv2/overview/invocation.html#bbv2.overview.invocation.properties
|
# see: http://www.boost.org/build/doc/html/bbv2/overview/invocation.html#bbv2.overview.invocation.properties
|
||||||
|
35
.github/workflows/ci.yml
vendored
35
.github/workflows/ci.yml
vendored
@@ -1,7 +1,7 @@
|
|||||||
# Copyright 2020-2021 Peter Dimov
|
# Copyright 2020-2021 Peter Dimov
|
||||||
# Copyright 2021 Andrey Semashev
|
# Copyright 2021 Andrey Semashev
|
||||||
# Copyright 2021 Alexander Grund
|
# Copyright 2021 Alexander Grund
|
||||||
# Copyright 2022 James E. King III
|
# Copyright 2022-2025 James E. King III
|
||||||
#
|
#
|
||||||
# Distributed under the Boost Software License, Version 1.0.
|
# Distributed under the Boost Software License, Version 1.0.
|
||||||
# (See accompanying file LICENSE_1_0.txt or copy at http://boost.org/LICENSE_1_0.txt)
|
# (See accompanying file LICENSE_1_0.txt or copy at http://boost.org/LICENSE_1_0.txt)
|
||||||
@@ -18,20 +18,22 @@ on:
|
|||||||
- feature/**
|
- feature/**
|
||||||
- fix/**
|
- fix/**
|
||||||
- pr/**
|
- pr/**
|
||||||
|
paths-ignore:
|
||||||
|
- LICENSE
|
||||||
|
- meta/**
|
||||||
|
- README.md
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{format('{0}:{1}', github.repository, github.ref)}}
|
group: ${{format('{0}:{1}', github.repository, github.ref)}}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
env:
|
env:
|
||||||
SELF: logic
|
|
||||||
GIT_FETCH_JOBS: 8
|
GIT_FETCH_JOBS: 8
|
||||||
NET_RETRY_COUNT: 5
|
NET_RETRY_COUNT: 5
|
||||||
B2_CI_VERSION: 1
|
B2_CI_VERSION: 1
|
||||||
B2_VARIANT: debug,release
|
B2_VARIANT: debug,release
|
||||||
B2_LINK: shared,static
|
B2_LINK: shared,static
|
||||||
LCOV_BRANCH_COVERAGE: 1
|
LCOV_BRANCH_COVERAGE: 1
|
||||||
CODECOV_NAME: Github Actions
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
posix:
|
posix:
|
||||||
@@ -132,7 +134,7 @@ jobs:
|
|||||||
for i in {1..${NET_RETRY_COUNT:-3}}; do sudo -E add-apt-repository -y ppa:git-core/ppa && break || sleep 10; done
|
for i in {1..${NET_RETRY_COUNT:-3}}; do sudo -E add-apt-repository -y ppa:git-core/ppa && break || sleep 10; done
|
||||||
apt-get -o Acquire::Retries=$NET_RETRY_COUNT update
|
apt-get -o Acquire::Retries=$NET_RETRY_COUNT update
|
||||||
osver=$(lsb_release -sr | cut -f1 -d.)
|
osver=$(lsb_release -sr | cut -f1 -d.)
|
||||||
pkgs="g++ git"
|
pkgs="g++ git xz-utils"
|
||||||
# Ubuntu 22+ has only Python 3 in the repos
|
# Ubuntu 22+ has only Python 3 in the repos
|
||||||
if [ -n "$osver" ] && [ "$osver" -ge "22" ]; then
|
if [ -n "$osver" ] && [ "$osver" -ge "22" ]; then
|
||||||
pkgs+=" python-is-python3 libpython3-dev"
|
pkgs+=" python-is-python3 libpython3-dev"
|
||||||
@@ -180,8 +182,8 @@ jobs:
|
|||||||
- name: Install packages
|
- name: Install packages
|
||||||
if: startsWith(matrix.os, 'ubuntu')
|
if: startsWith(matrix.os, 'ubuntu')
|
||||||
run: |
|
run: |
|
||||||
SOURCE_KEYS=(${{join(matrix.source_keys, ' ')}})
|
SOURCE_KEYS=("${{join(matrix.source_keys, '" "')}}")
|
||||||
SOURCES=(${{join(matrix.sources, ' ')}})
|
SOURCES=("${{join(matrix.sources, '" "')}}")
|
||||||
# Add this by default
|
# Add this by default
|
||||||
SOURCE_KEYS+=('http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x1E9377A2BA9EF27F')
|
SOURCE_KEYS+=('http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x1E9377A2BA9EF27F')
|
||||||
SOURCES+=(ppa:ubuntu-toolchain-r/test)
|
SOURCES+=(ppa:ubuntu-toolchain-r/test)
|
||||||
@@ -247,21 +249,11 @@ jobs:
|
|||||||
if: '!matrix.coverity'
|
if: '!matrix.coverity'
|
||||||
run: ci/build.sh
|
run: ci/build.sh
|
||||||
|
|
||||||
- name: Collect coverage
|
- name: Upload coverage
|
||||||
if: matrix.coverage
|
if: matrix.coverage
|
||||||
run: ci/codecov.sh "upload"
|
run: ci/codecov.sh "upload"
|
||||||
env:
|
env:
|
||||||
BOOST_CI_CODECOV_IO_UPLOAD: skip
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
|
||||||
- name: Upload coverage
|
|
||||||
if: matrix.coverage
|
|
||||||
uses: codecov/codecov-action@v4
|
|
||||||
with:
|
|
||||||
disable_search: true
|
|
||||||
file: coverage.info
|
|
||||||
name: Github Actions
|
|
||||||
token: ${{secrets.CODECOV_TOKEN}}
|
|
||||||
verbose: true
|
|
||||||
|
|
||||||
- name: Run coverity
|
- name: Run coverity
|
||||||
if: matrix.coverity && github.event_name == 'push' && (github.ref_name == 'develop' || github.ref_name == 'master')
|
if: matrix.coverity && github.event_name == 'push' && (github.ref_name == 'develop' || github.ref_name == 'master')
|
||||||
@@ -325,11 +317,12 @@ jobs:
|
|||||||
|
|
||||||
- name: Upload coverage
|
- name: Upload coverage
|
||||||
if: matrix.coverage
|
if: matrix.coverage
|
||||||
uses: codecov/codecov-action@v4
|
uses: codecov/codecov-action@v5
|
||||||
with:
|
with:
|
||||||
disable_search: true
|
disable_search: true
|
||||||
file: __out/cobertura.xml
|
fail_ci_if_error: true
|
||||||
name: Github Actions
|
files: __out/cobertura.xml
|
||||||
|
name: github-actions
|
||||||
token: ${{secrets.CODECOV_TOKEN}}
|
token: ${{secrets.CODECOV_TOKEN}}
|
||||||
verbose: true
|
verbose: true
|
||||||
|
|
||||||
|
20
README.md
20
README.md
@@ -1,8 +1,8 @@
|
|||||||
Logic, part of collection of the [Boost C++ Libraries](http://github.com/boostorg), provides `boost::logic::tribool` for 3-state boolean logic.
|
Logic, part of collection of the [Boost C++ Libraries](https://github.com/boostorg), provides `boost::logic::tribool` for 3-state boolean logic.
|
||||||
|
|
||||||
### License
|
### License
|
||||||
|
|
||||||
Distributed under the [Boost Software License, Version 1.0](http://www.boost.org/LICENSE_1_0.txt).
|
Distributed under the [Boost Software License, Version 1.0](https://www.boost.org/LICENSE_1_0.txt).
|
||||||
|
|
||||||
### Properties
|
### Properties
|
||||||
|
|
||||||
@@ -11,10 +11,11 @@ Distributed under the [Boost Software License, Version 1.0](http://www.boost.org
|
|||||||
|
|
||||||
### Build Status
|
### Build Status
|
||||||
|
|
||||||
Branch | GHA CI | Appveyor | Coverity Scan | codecov.io | Deps | Docs | Tests |
|
<!-- boost-ci/tools/makebadges.sh --project logic --appveyor 8mtghg32sqgc2syg --codecov 2RCqoPxHln --coverity 16173 -->
|
||||||
:-------------: | ------ | -------- | ------------- | ---------- | ---- | ---- | ----- |
|
| Branch | GHA CI | Appveyor | Coverity Scan | codecov.io | Deps | Docs | Tests |
|
||||||
[`master`](https://github.com/boostorg/logic/tree/master) | [](https://github.com/boostorg/logic/actions?query=branch:master) | [](https://ci.appveyor.com/project/cppalliance/logic) | [](https://scan.coverity.com/projects/boostorg-logic) | [](https://codecov.io/gh/boostorg/logic/branch/master)| [](https://pdimov.github.io/boostdep-report/master/logic.html) | [](https://www.boost.org/doc/libs/master/libs/tribool) | [](http://www.boost.org/development/tests/master/developer/logic.html)
|
| :-------------: | ------ | -------- | ------------- | ---------- | ---- | ---- | ----- |
|
||||||
[`develop`](https://github.com/boostorg/logic/tree/develop) | [](https://github.com/boostorg/logic/actions?query=branch:develop) | [](https://ci.appveyor.com/project/cppalliance/logic/branch/develop) | [](https://scan.coverity.com/projects/boostorg-logic) | [](https://codecov.io/gh/boostorg/logic/branch/develop) | [](https://pdimov.github.io/boostdep-report/develop/logic.html) | [](https://www.boost.org/doc/libs/develop/libs/tribool) | [](http://www.boost.org/development/tests/develop/developer/logic.html)
|
| [`master`](https://github.com/boostorg/logic/tree/master) | [](https://github.com/boostorg/logic/actions?query=branch:master) | [](https://ci.appveyor.com/project/cppalliance/logic/branch/master) | [](https://scan.coverity.com/projects/boostorg-logic) | [](https://codecov.io/gh/boostorg/logic/tree/master) | [](https://pdimov.github.io/boostdep-report/master/logic.html) | [](https://www.boost.org/doc/libs/master/libs/logic) | [](https://www.boost.org/development/tests/master/developer/logic.html)
|
||||||
|
| [`develop`](https://github.com/boostorg/logic/tree/develop) | [](https://github.com/boostorg/logic/actions?query=branch:develop) | [](https://ci.appveyor.com/project/cppalliance/logic/branch/develop) | [](https://scan.coverity.com/projects/boostorg-logic) | [](https://codecov.io/gh/boostorg/logic/tree/develop) | [](https://pdimov.github.io/boostdep-report/develop/logic.html) | [](https://www.boost.org/doc/libs/develop/libs/logic) | [](https://www.boost.org/development/tests/develop/developer/logic.html)
|
||||||
|
|
||||||
### Directories
|
### Directories
|
||||||
|
|
||||||
@@ -27,8 +28,7 @@ Branch | GHA CI | Appveyor | Coverity Scan | codecov.io | Deps | Docs |
|
|||||||
|
|
||||||
### More information
|
### More information
|
||||||
|
|
||||||
* [Ask questions](http://stackoverflow.com/questions/ask?tags=c%2B%2B,boost,boost-logic)
|
* [Ask questions](https://stackoverflow.com/questions/ask?tags=c%2B%2B,boost,boost-logic)
|
||||||
* [Report bugs](https://github.com/boostorg/logic/issues): Be sure to mention Boost version, platform and compiler you're using. A small compilable code sample to reproduce the problem is always good as well.
|
* [Report bugs](https://github.com/boostorg/logic/issues): Be sure to mention Boost version, platform and compiler you're using. A small compilable code sample to reproduce the problem is always good as well.
|
||||||
* Submit your patches as pull requests against **develop** branch. Note that by submitting patches you agree to license your modifications under the [Boost Software License, Version 1.0](http://www.boost.org/LICENSE_1_0.txt).
|
* Submit your patches as pull requests against **develop** branch. Note that by submitting patches you agree to license your modifications under the [Boost Software License, Version 1.0](https://www.boost.org/LICENSE_1_0.txt).
|
||||||
* Discussions about the library are held on the [Boost developers mailing list](http://www.boost.org/community/groups.html#main). Be sure to read the [discussion policy](http://www.boost.org/community/policy.html) before posting and add the `[logic]` tag at the beginning of the subject line.
|
* Discussions about the library are held on the [Boost developers mailing list](https://www.boost.org/community/groups.html#main). Be sure to read the [discussion policy](https://www.boost.org/community/policy.html) before posting and add the `[logic]` tag at the beginning of the subject line.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user