mirror of
https://github.com/biojppm/rapidyaml.git
synced 2026-01-18 21:41:18 +01:00
[chore] create and publish release in the github action
This commit is contained in:
291
.gitchangelog.rc
Normal file
291
.gitchangelog.rc
Normal file
@@ -0,0 +1,291 @@
|
||||
# -*- coding: utf-8; mode: python -*-
|
||||
##
|
||||
## https://pypi.org/project/gitchangelog/
|
||||
##
|
||||
## Format
|
||||
##
|
||||
## ACTION: [AUDIENCE:] COMMIT_MSG [!TAG ...]
|
||||
##
|
||||
## Description
|
||||
##
|
||||
## ACTION is one of 'chg', 'fix', 'new'
|
||||
##
|
||||
## Is WHAT the change is about.
|
||||
##
|
||||
## 'chg' is for refactor, small improvement, cosmetic changes...
|
||||
## 'fix' is for bug fixes
|
||||
## 'new' is for new features, big improvement
|
||||
##
|
||||
## AUDIENCE is optional and one of 'dev', 'usr', 'pkg', 'test', 'doc'
|
||||
##
|
||||
## Is WHO is concerned by the change.
|
||||
##
|
||||
## 'dev' is for developpers (API changes, refactors...)
|
||||
## 'usr' is for final users (UI changes)
|
||||
## 'pkg' is for packagers (packaging changes)
|
||||
## 'test' is for testers (test only related changes)
|
||||
## 'doc' is for doc guys (doc only changes)
|
||||
##
|
||||
## COMMIT_MSG is ... well ... the commit message itself.
|
||||
##
|
||||
## TAGs are additionnal adjective as 'refactor' 'minor' 'cosmetic'
|
||||
##
|
||||
## They are preceded with a '!' or a '@' (prefer the former, as the
|
||||
## latter is wrongly interpreted in github.) Commonly used tags are:
|
||||
##
|
||||
## 'refactor' is obviously for refactoring code only
|
||||
## 'minor' is for a very meaningless change (a typo, adding a comment)
|
||||
## 'cosmetic' is for cosmetic driven change (re-indentation, 80-col...)
|
||||
## 'wip' is for partial functionality but complete subfunctionality.
|
||||
##
|
||||
## Example:
|
||||
##
|
||||
## new: usr: support of bazaar implemented
|
||||
## chg: re-indentend some lines !cosmetic
|
||||
## new: dev: updated code to be compatible with last version of killer lib.
|
||||
## fix: pkg: updated year of licence coverage.
|
||||
## new: test: added a bunch of test around user usability of feature X.
|
||||
## fix: typo in spelling my name in comment. !minor
|
||||
##
|
||||
## Please note that multi-line commit message are supported, and only the
|
||||
## first line will be considered as the "summary" of the commit message. So
|
||||
## tags, and other rules only applies to the summary. The body of the commit
|
||||
## message will be displayed in the changelog without reformatting.
|
||||
|
||||
|
||||
##
|
||||
## ``ignore_regexps`` is a line of regexps
|
||||
##
|
||||
## Any commit having its full commit message matching any regexp listed here
|
||||
## will be ignored and won't be reported in the changelog.
|
||||
##
|
||||
ignore_regexps = [
|
||||
r'@minor', r'!minor',
|
||||
r'@cosmetic', r'!cosmetic',
|
||||
r'@refactor', r'!refactor',
|
||||
r'@wip', r'!wip',
|
||||
r'^([cC]hg|[fF]ix|[nN]ew)\s*:\s*[p|P]kg:',
|
||||
r'^([cC]hg|[fF]ix|[nN]ew)\s*:\s*[d|D]ev:',
|
||||
r'^(.{3,3}\s*:)?\s*[fF]irst commit.?\s*$',
|
||||
r'^$', ## ignore commits with empty messages
|
||||
]
|
||||
|
||||
|
||||
## ``section_regexps`` is a list of 2-tuples associating a string label and a
|
||||
## list of regexp
|
||||
##
|
||||
## Commit messages will be classified in sections thanks to this. Section
|
||||
## titles are the label, and a commit is classified under this section if any
|
||||
## of the regexps associated is matching.
|
||||
##
|
||||
## Please note that ``section_regexps`` will only classify commits and won't
|
||||
## make any changes to the contents. So you'll probably want to go check
|
||||
## ``subject_process`` (or ``body_process``) to do some changes to the subject,
|
||||
## whenever you are tweaking this variable.
|
||||
##
|
||||
section_regexps = [
|
||||
('New', [
|
||||
r'^[nN]ew\s*:\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n]*)$',
|
||||
]),
|
||||
('Changes', [
|
||||
r'^[cC]hg\s*:\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n]*)$',
|
||||
]),
|
||||
('Fix', [
|
||||
r'^[fF]ix\s*:\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n]*)$',
|
||||
]),
|
||||
|
||||
('Other', None ## Match all lines
|
||||
),
|
||||
|
||||
]
|
||||
|
||||
|
||||
## ``body_process`` is a callable
|
||||
##
|
||||
## This callable will be given the original body and result will
|
||||
## be used in the changelog.
|
||||
##
|
||||
## Available constructs are:
|
||||
##
|
||||
## - any python callable that take one txt argument and return txt argument.
|
||||
##
|
||||
## - ReSub(pattern, replacement): will apply regexp substitution.
|
||||
##
|
||||
## - Indent(chars=" "): will indent the text with the prefix
|
||||
## Please remember that template engines gets also to modify the text and
|
||||
## will usually indent themselves the text if needed.
|
||||
##
|
||||
## - Wrap(regexp=r"\n\n"): re-wrap text in separate paragraph to fill 80-Columns
|
||||
##
|
||||
## - noop: do nothing
|
||||
##
|
||||
## - ucfirst: ensure the first letter is uppercase.
|
||||
## (usually used in the ``subject_process`` pipeline)
|
||||
##
|
||||
## - final_dot: ensure text finishes with a dot
|
||||
## (usually used in the ``subject_process`` pipeline)
|
||||
##
|
||||
## - strip: remove any spaces before or after the content of the string
|
||||
##
|
||||
## - SetIfEmpty(msg="No commit message."): will set the text to
|
||||
## whatever given ``msg`` if the current text is empty.
|
||||
##
|
||||
## Additionally, you can `pipe` the provided filters, for instance:
|
||||
#body_process = Wrap(regexp=r'\n(?=\w+\s*:)') | Indent(chars=" ")
|
||||
#body_process = Wrap(regexp=r'\n(?=\w+\s*:)')
|
||||
#body_process = noop
|
||||
body_process = ReSub(r'((^|\n)[A-Z]\w+(-\w+)*: .*(\n\s+.*)*)+$', r'') | strip
|
||||
|
||||
|
||||
## ``subject_process`` is a callable
|
||||
##
|
||||
## This callable will be given the original subject and result will
|
||||
## be used in the changelog.
|
||||
##
|
||||
## Available constructs are those listed in ``body_process`` doc.
|
||||
subject_process = (strip |
|
||||
ReSub(r'^([cC]hg|[fF]ix|[nN]ew)\s*:\s*((dev|use?r|pkg|test|doc)\s*:\s*)?([^\n@]*)(@[a-z]+\s+)*$', r'\4') |
|
||||
SetIfEmpty("No commit message.") | ucfirst | final_dot)
|
||||
|
||||
|
||||
## ``tag_filter_regexp`` is a regexp
|
||||
##
|
||||
## Tags that will be used for the changelog must match this regexp.
|
||||
##
|
||||
tag_filter_regexp = r'^[0-9]+\.[0-9]+(\.[0-9]+)?$'
|
||||
|
||||
|
||||
## ``unreleased_version_label`` is a string or a callable that outputs a string
|
||||
##
|
||||
## This label will be used as the changelog Title of the last set of changes
|
||||
## between last valid tag and HEAD if any.
|
||||
unreleased_version_label = "(unreleased)"
|
||||
|
||||
|
||||
## ``output_engine`` is a callable
|
||||
##
|
||||
## This will change the output format of the generated changelog file
|
||||
##
|
||||
## Available choices are:
|
||||
##
|
||||
## - rest_py
|
||||
##
|
||||
## Legacy pure python engine, outputs ReSTructured text.
|
||||
## This is the default.
|
||||
##
|
||||
## - mustache(<template_name>)
|
||||
##
|
||||
## Template name could be any of the available templates in
|
||||
## ``templates/mustache/*.tpl``.
|
||||
## Requires python package ``pystache``.
|
||||
## Examples:
|
||||
## - mustache("markdown")
|
||||
## - mustache("restructuredtext")
|
||||
##
|
||||
## - makotemplate(<template_name>)
|
||||
##
|
||||
## Template name could be any of the available templates in
|
||||
## ``templates/mako/*.tpl``.
|
||||
## Requires python package ``mako``.
|
||||
## Examples:
|
||||
## - makotemplate("restructuredtext")
|
||||
##
|
||||
#output_engine = rest_py
|
||||
#output_engine = mustache("restructuredtext")
|
||||
output_engine = mustache("markdown")
|
||||
#output_engine = makotemplate("restructuredtext")
|
||||
|
||||
|
||||
## ``include_merge`` is a boolean
|
||||
##
|
||||
## This option tells git-log whether to include merge commits in the log.
|
||||
## The default is to include them.
|
||||
include_merge = True
|
||||
|
||||
|
||||
## ``log_encoding`` is a string identifier
|
||||
##
|
||||
## This option tells gitchangelog what encoding is outputed by ``git log``.
|
||||
## The default is to be clever about it: it checks ``git config`` for
|
||||
## ``i18n.logOutputEncoding``, and if not found will default to git's own
|
||||
## default: ``utf-8``.
|
||||
#log_encoding = 'utf-8'
|
||||
|
||||
|
||||
## ``publish`` is a callable
|
||||
##
|
||||
## Sets what ``gitchangelog`` should do with the output generated by
|
||||
## the output engine. ``publish`` is a callable taking one argument
|
||||
## that is an interator on lines from the output engine.
|
||||
##
|
||||
## Some helper callable are provided:
|
||||
##
|
||||
## Available choices are:
|
||||
##
|
||||
## - stdout
|
||||
##
|
||||
## Outputs directly to standard output
|
||||
## (This is the default)
|
||||
##
|
||||
## - FileInsertAtFirstRegexMatch(file, pattern, idx=lamda m: m.start())
|
||||
##
|
||||
## Creates a callable that will parse given file for the given
|
||||
## regex pattern and will insert the output in the file.
|
||||
## ``idx`` is a callable that receive the matching object and
|
||||
## must return a integer index point where to insert the
|
||||
## the output in the file. Default is to return the position of
|
||||
## the start of the matched string.
|
||||
##
|
||||
## - FileRegexSubst(file, pattern, replace, flags)
|
||||
##
|
||||
## Apply a replace inplace in the given file. Your regex pattern must
|
||||
## take care of everything and might be more complex. Check the README
|
||||
## for a complete copy-pastable example.
|
||||
##
|
||||
# publish = FileInsertIntoFirstRegexMatch(
|
||||
# "CHANGELOG.rst",
|
||||
# r'/(?P<rev>[0-9]+\.[0-9]+(\.[0-9]+)?)\s+\([0-9]+-[0-9]{2}-[0-9]{2}\)\n--+\n/',
|
||||
# idx=lambda m: m.start(1)
|
||||
# )
|
||||
#publish = stdout
|
||||
|
||||
|
||||
## ``revs`` is a list of callable or a list of string
|
||||
##
|
||||
## callable will be called to resolve as strings and allow dynamical
|
||||
## computation of these. The result will be used as revisions for
|
||||
## gitchangelog (as if directly stated on the command line). This allows
|
||||
## to filter exaclty which commits will be read by gitchangelog.
|
||||
##
|
||||
## To get a full documentation on the format of these strings, please
|
||||
## refer to the ``git rev-list`` arguments. There are many examples.
|
||||
##
|
||||
## Using callables is especially useful, for instance, if you
|
||||
## are using gitchangelog to generate incrementally your changelog.
|
||||
##
|
||||
## Some helpers are provided, you can use them::
|
||||
##
|
||||
## - FileFirstRegexMatch(file, pattern): will return a callable that will
|
||||
## return the first string match for the given pattern in the given file.
|
||||
## If you use named sub-patterns in your regex pattern, it'll output only
|
||||
## the string matching the regex pattern named "rev".
|
||||
##
|
||||
## - Caret(rev): will return the rev prefixed by a "^", which is a
|
||||
## way to remove the given revision and all its ancestor.
|
||||
##
|
||||
## Please note that if you provide a rev-list on the command line, it'll
|
||||
## replace this value (which will then be ignored).
|
||||
##
|
||||
## If empty, then ``gitchangelog`` will act as it had to generate a full
|
||||
## changelog.
|
||||
##
|
||||
## The default is to use all commits to make the changelog.
|
||||
#revs = ["^1.0.3", ]
|
||||
#revs = [
|
||||
# Caret(
|
||||
# FileFirstRegexMatch(
|
||||
# "CHANGELOG.rst",
|
||||
# r"(?P<rev>[0-9]+\.[0-9]+(\.[0-9]+)?)\s+\([0-9]+-[0-9]{2}-[0-9]{2}\)\n--+\n")),
|
||||
# "HEAD"
|
||||
#]
|
||||
revs = []
|
||||
6
.github/reqs.sh
vendored
6
.github/reqs.sh
vendored
@@ -20,8 +20,10 @@ function c4_install_test_requirements()
|
||||
case "$os" in
|
||||
ubuntu*) ;;
|
||||
win*)
|
||||
choco install swig
|
||||
which swig
|
||||
if [ "$API" == "ON" ] ; then
|
||||
choco install swig
|
||||
which swig
|
||||
fi
|
||||
return 0
|
||||
;;
|
||||
*)
|
||||
|
||||
53
.github/setenv.sh
vendored
53
.github/setenv.sh
vendored
@@ -48,6 +48,10 @@ function c4_show_info()
|
||||
;;
|
||||
esac
|
||||
set -x
|
||||
git branch
|
||||
git rev-parse HEAD
|
||||
git tag || echo
|
||||
git log -1 --format='%H'
|
||||
}
|
||||
|
||||
function _c4bits()
|
||||
@@ -95,10 +99,9 @@ function c4_run_test()
|
||||
function c4_build_target() # runs in parallel
|
||||
{
|
||||
if _c4skipbitlink "$1" ; then return 0 ; fi
|
||||
bits=$(_c4bits $1)
|
||||
linktype=$(_c4linktype $1)
|
||||
id=$1
|
||||
target=$2
|
||||
build_dir=`pwd`/build/$bits-$linktype # see c4_cfg_test()
|
||||
build_dir=`pwd`/build/$id
|
||||
export CTEST_OUTPUT_ON_FAILURE=1
|
||||
# watchout: the `--parallel` flag to `cmake --build` is broken:
|
||||
# https://discourse.cmake.org/t/parallel-does-not-really-enable-parallel-compiles-with-msbuild/964/10
|
||||
@@ -109,21 +112,24 @@ function c4_build_target() # runs in parallel
|
||||
function c4_run_target() # does not run in parallel
|
||||
{
|
||||
if _c4skipbitlink "$1" ; then return 0 ; fi
|
||||
bits=$(_c4bits $1)
|
||||
linktype=$(_c4linktype $1)
|
||||
id=$1
|
||||
target=$2
|
||||
build_dir=`pwd`/build/$bits-$linktype # see c4_cfg_test()
|
||||
build_dir=`pwd`/build/$id
|
||||
export CTEST_OUTPUT_ON_FAILURE=1
|
||||
cmake --build $build_dir --config $BT --target $target
|
||||
}
|
||||
|
||||
function c4_pack()
|
||||
function c4_package()
|
||||
{
|
||||
if _c4skipbitlink "$1" ; then return 0 ; fi
|
||||
bits=$(_c4bits $1)
|
||||
linktype=$(_c4linktype $1)
|
||||
build_dir=`pwd`/build/$bits-$linktype # see c4_cfg_test()
|
||||
cmake --build $build_dir --config $BT --target package
|
||||
id=$1
|
||||
generator=$2
|
||||
build_dir=`pwd`/build/$id
|
||||
if [ -z "$generator" ] ; then
|
||||
c4_run_target $id package
|
||||
else
|
||||
( cd $build_dir ; cpack -G $generator )
|
||||
fi
|
||||
}
|
||||
|
||||
function c4_submit_coverage()
|
||||
@@ -133,11 +139,9 @@ function c4_submit_coverage()
|
||||
return 0
|
||||
fi
|
||||
if _c4skipbitlink "$1" ; then return 0 ; fi
|
||||
bits=$(_c4bits $1)
|
||||
linktype=$(_c4linktype $1)
|
||||
id=$1
|
||||
coverage_service=$2
|
||||
build_dir=`pwd`/build/$bits-$linktype # see c4_cfg_test()
|
||||
if [ "$CXX_" == "xcode" ] && [ "$bits" == "32" ] ; then return 0 ; fi
|
||||
build_dir=`pwd`/build/$id
|
||||
echo "Submitting coverage data: $build_dir --> $coverage_service"
|
||||
cmake --build $build_dir --config $BT --target ${PROJ_PFX_TARGET}coverage-submit-$coverage_service
|
||||
}
|
||||
@@ -146,9 +150,9 @@ function c4_submit_coverage()
|
||||
function c4_run_static_analysis()
|
||||
{
|
||||
if _c4skipbitlink "$1" ; then return 0 ; fi
|
||||
bits=$(_c4bits $1)
|
||||
linktype=$(_c4linktype $1)
|
||||
build_dir=`pwd`/build/$bits-$linktype # see c4_cfg_test()
|
||||
id=$1
|
||||
linktype=$(_c4linktype $id)
|
||||
build_dir=`pwd`/build/$id
|
||||
# https://blog.kitware.com/static-checks-with-cmake-cdash-iwyu-clang-tidy-lwyu-cpplint-and-cppcheck/
|
||||
pushd $PROJ_DIR
|
||||
}
|
||||
@@ -156,11 +160,12 @@ function c4_run_static_analysis()
|
||||
function c4_cfg_test()
|
||||
{
|
||||
if _c4skipbitlink "$1" ; then return 0 ; fi
|
||||
bits=$(_c4bits $1)
|
||||
linktype=$(_c4linktype $1)
|
||||
id=$1
|
||||
bits=$(_c4bits $id)
|
||||
linktype=$(_c4linktype $id)
|
||||
#
|
||||
build_dir=`pwd`/build/$bits-$linktype
|
||||
install_dir=`pwd`/install/$bits-$linktype
|
||||
build_dir=`pwd`/build/$id
|
||||
install_dir=`pwd`/install/$id
|
||||
mkdir -p $build_dir
|
||||
mkdir -p $install_dir
|
||||
#
|
||||
@@ -177,7 +182,9 @@ function c4_cfg_test()
|
||||
_addprojflags CXX_STANDARD=$STD
|
||||
fi
|
||||
#
|
||||
_addprojflags DEV=ON
|
||||
if [ "$DEV" != "OFF" ] ; then
|
||||
_addprojflags DEV=ON
|
||||
fi
|
||||
case "$LINT" in
|
||||
all ) _addprojflags LINT=ON LINT_TESTS=ON LINT_CLANG_TIDY=ON LINT_PVS_STUDIO=ON ;;
|
||||
clang-tidy) _addprojflags LINT=ON LINT_TESTS=ON LINT_CLANG_TIDY=ON LINT_PVS_STUDIO=OFF ;;
|
||||
|
||||
@@ -1,14 +1,12 @@
|
||||
name: ci
|
||||
|
||||
defaults:
|
||||
#if: "!contains(github.event.head_commit.message, 'skip ci')" # SKIP
|
||||
run:
|
||||
# Use a bash shell so we can use the same syntax for environment variable
|
||||
# access regardless of the host operating system
|
||||
shell: bash -e -x {0}
|
||||
|
||||
if: "!contains(github.event.head_commit.message, 'skip ci')"
|
||||
# if: github.ref == 'refs/heads/master'
|
||||
|
||||
on:
|
||||
- push
|
||||
- workflow_dispatch
|
||||
@@ -16,8 +14,8 @@ on:
|
||||
env:
|
||||
PROJ_PFX_TARGET: ryml-
|
||||
PROJ_PFX_CMAKE: RYML_
|
||||
NUM_JOBS_BUILD: # 4
|
||||
CMAKE_FLAGS: -DRYML_TEST_SUITE=ON
|
||||
NUM_JOBS_BUILD: # 4
|
||||
|
||||
|
||||
# ubuntu-20.04:
|
||||
@@ -52,6 +50,7 @@ jobs:
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
test_coverage:
|
||||
# if: github.ref == 'refs/heads/master'
|
||||
continue-on-error: true
|
||||
runs-on: ${{matrix.os}}
|
||||
strategy:
|
||||
@@ -140,22 +139,22 @@ jobs:
|
||||
run: source .github/setenv.sh && c4_cfg_test shared64
|
||||
- {name: shared64-build, run: source .github/setenv.sh && c4_build_test shared64}
|
||||
- {name: shared64-run, run: source .github/setenv.sh && c4_run_test shared64}
|
||||
- {name: shared64-pack, run: source .github/setenv.sh && c4_pack shared64}
|
||||
- {name: shared64-pack, run: source .github/setenv.sh && c4_package shared64}
|
||||
- name: static64-configure---------------------------------------------------
|
||||
run: source .github/setenv.sh && c4_cfg_test static64
|
||||
- {name: static64-build, run: source .github/setenv.sh && c4_build_test static64}
|
||||
- {name: static64-run, run: source .github/setenv.sh && c4_run_test static64}
|
||||
- {name: static64-pack, run: source .github/setenv.sh && c4_pack static64}
|
||||
- {name: static64-pack, run: source .github/setenv.sh && c4_package static64}
|
||||
- name: shared32-configure---------------------------------------------------
|
||||
run: source .github/setenv.sh && c4_cfg_test shared32
|
||||
- {name: shared32-build, run: source .github/setenv.sh && c4_build_test shared32}
|
||||
- {name: shared32-run, run: source .github/setenv.sh && c4_run_test shared32}
|
||||
- {name: shared32-pack, run: source .github/setenv.sh && c4_pack shared32}
|
||||
- {name: shared32-pack, run: source .github/setenv.sh && c4_package shared32}
|
||||
- name: static32-configure---------------------------------------------------
|
||||
run: source .github/setenv.sh && c4_cfg_test static32
|
||||
- {name: static32-build, run: source .github/setenv.sh && c4_build_test static32}
|
||||
- {name: static32-run, run: source .github/setenv.sh && c4_run_test static32}
|
||||
- {name: static32-pack, run: source .github/setenv.sh && c4_pack static32}
|
||||
- {name: static32-pack, run: source .github/setenv.sh && c4_package static32}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
test_macosx:
|
||||
@@ -178,22 +177,22 @@ jobs:
|
||||
run: source .github/setenv.sh && c4_cfg_test shared64
|
||||
- {name: shared64-build, run: source .github/setenv.sh && c4_build_test shared64}
|
||||
- {name: shared64-run, run: source .github/setenv.sh && c4_run_test shared64}
|
||||
- {name: shared64-pack, run: source .github/setenv.sh && c4_pack shared64}
|
||||
- {name: shared64-pack, run: source .github/setenv.sh && c4_package shared64}
|
||||
- name: static64-configure---------------------------------------------------
|
||||
run: source .github/setenv.sh && c4_cfg_test static64
|
||||
- {name: static64-build, run: source .github/setenv.sh && c4_build_test static64}
|
||||
- {name: static64-run, run: source .github/setenv.sh && c4_run_test static64}
|
||||
- {name: static64-pack, run: source .github/setenv.sh && c4_pack static64}
|
||||
- {name: static64-pack, run: source .github/setenv.sh && c4_package static64}
|
||||
- name: shared32-configure---------------------------------------------------
|
||||
run: source .github/setenv.sh && c4_cfg_test shared32
|
||||
- {name: shared32-build, run: source .github/setenv.sh && c4_build_test shared32}
|
||||
- {name: shared32-run, run: source .github/setenv.sh && c4_run_test shared32}
|
||||
- {name: shared32-pack, run: source .github/setenv.sh && c4_pack shared32}
|
||||
- {name: shared32-pack, run: source .github/setenv.sh && c4_package shared32}
|
||||
- name: static32-configure---------------------------------------------------
|
||||
run: source .github/setenv.sh && c4_cfg_test static32
|
||||
- {name: static32-build, run: source .github/setenv.sh && c4_build_test static32}
|
||||
- {name: static32-run, run: source .github/setenv.sh && c4_run_test static32}
|
||||
- {name: static32-pack, run: source .github/setenv.sh && c4_pack static32}
|
||||
- {name: static32-pack, run: source .github/setenv.sh && c4_package static32}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
test_gcc_canary:
|
||||
@@ -218,22 +217,22 @@ jobs:
|
||||
run: source .github/setenv.sh && c4_cfg_test shared64
|
||||
- {name: shared64-build, run: source .github/setenv.sh && c4_build_test shared64}
|
||||
- {name: shared64-run, run: source .github/setenv.sh && c4_run_test shared64}
|
||||
- {name: shared64-pack, run: source .github/setenv.sh && c4_pack shared64}
|
||||
- {name: shared64-pack, run: source .github/setenv.sh && c4_package shared64}
|
||||
- name: static64-configure---------------------------------------------------
|
||||
run: source .github/setenv.sh && c4_cfg_test static64
|
||||
- {name: static64-build, run: source .github/setenv.sh && c4_build_test static64}
|
||||
- {name: static64-run, run: source .github/setenv.sh && c4_run_test static64}
|
||||
- {name: static64-pack, run: source .github/setenv.sh && c4_pack static64}
|
||||
- {name: static64-pack, run: source .github/setenv.sh && c4_package static64}
|
||||
- name: static32-configure---------------------------------------------------
|
||||
run: source .github/setenv.sh && c4_cfg_test static32
|
||||
- {name: static32-build, run: source .github/setenv.sh && c4_build_test static32}
|
||||
- {name: static32-run, run: source .github/setenv.sh && c4_run_test static32}
|
||||
- {name: static32-pack, run: source .github/setenv.sh && c4_pack static32}
|
||||
- {name: static32-pack, run: source .github/setenv.sh && c4_package static32}
|
||||
- name: shared32-configure---------------------------------------------------
|
||||
run: source .github/setenv.sh && c4_cfg_test shared32
|
||||
- {name: shared32-build, run: source .github/setenv.sh && c4_build_test shared32}
|
||||
- {name: shared32-run, run: source .github/setenv.sh && c4_run_test shared32}
|
||||
- {name: shared32-pack, run: source .github/setenv.sh && c4_pack shared32}
|
||||
- {name: shared32-pack, run: source .github/setenv.sh && c4_package shared32}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
test_clang_canary:
|
||||
@@ -256,22 +255,22 @@ jobs:
|
||||
run: source .github/setenv.sh && c4_cfg_test shared64
|
||||
- {name: shared64-build, run: source .github/setenv.sh && c4_build_test shared64}
|
||||
- {name: shared64-run, run: source .github/setenv.sh && c4_run_test shared64}
|
||||
- {name: shared64-pack, run: source .github/setenv.sh && c4_pack shared64}
|
||||
- {name: shared64-pack, run: source .github/setenv.sh && c4_package shared64}
|
||||
- name: static64-configure---------------------------------------------------
|
||||
run: source .github/setenv.sh && c4_cfg_test static64
|
||||
- {name: static64-build, run: source .github/setenv.sh && c4_build_test static64}
|
||||
- {name: static64-run, run: source .github/setenv.sh && c4_run_test static64}
|
||||
- {name: static64-pack, run: source .github/setenv.sh && c4_pack static64}
|
||||
- {name: static64-pack, run: source .github/setenv.sh && c4_package static64}
|
||||
- name: static32-configure---------------------------------------------------
|
||||
run: source .github/setenv.sh && c4_cfg_test static32
|
||||
- {name: static32-build, run: source .github/setenv.sh && c4_build_test static32}
|
||||
- {name: static32-run, run: source .github/setenv.sh && c4_run_test static32}
|
||||
- {name: static32-pack, run: source .github/setenv.sh && c4_pack static32}
|
||||
- {name: static32-pack, run: source .github/setenv.sh && c4_package static32}
|
||||
- name: shared32-configure---------------------------------------------------
|
||||
run: source .github/setenv.sh && c4_cfg_test shared32
|
||||
- {name: shared32-build, run: source .github/setenv.sh && c4_build_test shared32}
|
||||
- {name: shared32-run, run: source .github/setenv.sh && c4_run_test shared32}
|
||||
- {name: shared32-pack, run: source .github/setenv.sh && c4_pack shared32}
|
||||
- {name: shared32-pack, run: source .github/setenv.sh && c4_package shared32}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
test_clang_tidy:
|
||||
@@ -295,22 +294,22 @@ jobs:
|
||||
run: source .github/setenv.sh && c4_cfg_test shared64
|
||||
- {name: shared64-build, run: source .github/setenv.sh && c4_build_test shared64}
|
||||
- {name: shared64-run, run: source .github/setenv.sh && c4_run_test shared64}
|
||||
- {name: shared64-pack, run: source .github/setenv.sh && c4_pack shared64}
|
||||
- {name: shared64-pack, run: source .github/setenv.sh && c4_package shared64}
|
||||
- name: static64-configure---------------------------------------------------
|
||||
run: source .github/setenv.sh && c4_cfg_test static64
|
||||
- {name: static64-build, run: source .github/setenv.sh && c4_build_test static64}
|
||||
- {name: static64-run, run: source .github/setenv.sh && c4_run_test static64}
|
||||
- {name: static64-pack, run: source .github/setenv.sh && c4_pack static64}
|
||||
- {name: static64-pack, run: source .github/setenv.sh && c4_package static64}
|
||||
- name: static32-configure---------------------------------------------------
|
||||
run: source .github/setenv.sh && c4_cfg_test static32
|
||||
- {name: static32-build, run: source .github/setenv.sh && c4_build_test static32}
|
||||
- {name: static32-run, run: source .github/setenv.sh && c4_run_test static32}
|
||||
- {name: static32-pack, run: source .github/setenv.sh && c4_pack static32}
|
||||
- {name: static32-pack, run: source .github/setenv.sh && c4_package static32}
|
||||
- name: shared32-configure---------------------------------------------------
|
||||
run: source .github/setenv.sh && c4_cfg_test shared32
|
||||
- {name: shared32-build, run: source .github/setenv.sh && c4_build_test shared32}
|
||||
- {name: shared32-run, run: source .github/setenv.sh && c4_run_test shared32}
|
||||
- {name: shared32-pack, run: source .github/setenv.sh && c4_pack shared32}
|
||||
- {name: shared32-pack, run: source .github/setenv.sh && c4_package shared32}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
test_gcc_extended:
|
||||
@@ -349,22 +348,22 @@ jobs:
|
||||
run: source .github/setenv.sh && c4_cfg_test shared64
|
||||
- {name: shared64-build, run: source .github/setenv.sh && c4_build_test shared64}
|
||||
- {name: shared64-run, run: source .github/setenv.sh && c4_run_test shared64}
|
||||
- {name: shared64-pack, run: source .github/setenv.sh && c4_pack shared64}
|
||||
- {name: shared64-pack, run: source .github/setenv.sh && c4_package shared64}
|
||||
- name: static64-configure---------------------------------------------------
|
||||
run: source .github/setenv.sh && c4_cfg_test static64
|
||||
- {name: static64-build, run: source .github/setenv.sh && c4_build_test static64}
|
||||
- {name: static64-run, run: source .github/setenv.sh && c4_run_test static64}
|
||||
- {name: static64-pack, run: source .github/setenv.sh && c4_pack static64}
|
||||
- {name: static64-pack, run: source .github/setenv.sh && c4_package static64}
|
||||
- name: static32-configure---------------------------------------------------
|
||||
run: source .github/setenv.sh && c4_cfg_test static32
|
||||
- {name: static32-build, run: source .github/setenv.sh && c4_build_test static32}
|
||||
- {name: static32-run, run: source .github/setenv.sh && c4_run_test static32}
|
||||
- {name: static32-pack, run: source .github/setenv.sh && c4_pack static32}
|
||||
- {name: static32-pack, run: source .github/setenv.sh && c4_package static32}
|
||||
- name: shared32-configure---------------------------------------------------
|
||||
run: source .github/setenv.sh && c4_cfg_test shared32
|
||||
- {name: shared32-build, run: source .github/setenv.sh && c4_build_test shared32}
|
||||
- {name: shared32-run, run: source .github/setenv.sh && c4_run_test shared32}
|
||||
- {name: shared32-pack, run: source .github/setenv.sh && c4_pack shared32}
|
||||
- {name: shared32-pack, run: source .github/setenv.sh && c4_package shared32}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
test_clang_extended:
|
||||
@@ -397,22 +396,22 @@ jobs:
|
||||
run: source .github/setenv.sh && c4_cfg_test shared64
|
||||
- {name: shared64-build, run: source .github/setenv.sh && c4_build_test shared64}
|
||||
- {name: shared64-run, run: source .github/setenv.sh && c4_run_test shared64}
|
||||
- {name: shared64-pack, run: source .github/setenv.sh && c4_pack shared64}
|
||||
- {name: shared64-pack, run: source .github/setenv.sh && c4_package shared64}
|
||||
- name: static64-configure---------------------------------------------------
|
||||
run: source .github/setenv.sh && c4_cfg_test static64
|
||||
- {name: static64-build, run: source .github/setenv.sh && c4_build_test static64}
|
||||
- {name: static64-run, run: source .github/setenv.sh && c4_run_test static64}
|
||||
- {name: static64-pack, run: source .github/setenv.sh && c4_pack static64}
|
||||
- {name: static64-pack, run: source .github/setenv.sh && c4_package static64}
|
||||
- name: static32-configure---------------------------------------------------
|
||||
run: source .github/setenv.sh && c4_cfg_test static32
|
||||
- {name: static32-build, run: source .github/setenv.sh && c4_build_test static32}
|
||||
- {name: static32-run, run: source .github/setenv.sh && c4_run_test static32}
|
||||
- {name: static32-pack, run: source .github/setenv.sh && c4_pack static32}
|
||||
- {name: static32-pack, run: source .github/setenv.sh && c4_package static32}
|
||||
- name: shared32-configure---------------------------------------------------
|
||||
run: source .github/setenv.sh && c4_cfg_test shared32
|
||||
- {name: shared32-build, run: source .github/setenv.sh && c4_build_test shared32}
|
||||
- {name: shared32-run, run: source .github/setenv.sh && c4_run_test shared32}
|
||||
- {name: shared32-pack, run: source .github/setenv.sh && c4_pack shared32}
|
||||
- {name: shared32-pack, run: source .github/setenv.sh && c4_package shared32}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
test_clang_sanitize:
|
||||
@@ -456,22 +455,22 @@ jobs:
|
||||
run: source .github/setenv.sh && c4_cfg_test shared64
|
||||
- {name: shared64-build, run: source .github/setenv.sh && c4_build_test shared64}
|
||||
- {name: shared64-run, run: source .github/setenv.sh && c4_run_test shared64}
|
||||
- {name: shared64-pack, run: source .github/setenv.sh && c4_pack shared64}
|
||||
- {name: shared64-pack, run: source .github/setenv.sh && c4_package shared64}
|
||||
- name: static64-configure---------------------------------------------------
|
||||
run: source .github/setenv.sh && c4_cfg_test static64
|
||||
- {name: static64-build, run: source .github/setenv.sh && c4_build_test static64}
|
||||
- {name: static64-run, run: source .github/setenv.sh && c4_run_test static64}
|
||||
- {name: static64-pack, run: source .github/setenv.sh && c4_pack static64}
|
||||
- {name: static64-pack, run: source .github/setenv.sh && c4_package static64}
|
||||
- name: static32-configure---------------------------------------------------
|
||||
run: source .github/setenv.sh && c4_cfg_test static32
|
||||
- {name: static32-build, run: source .github/setenv.sh && c4_build_test static32}
|
||||
- {name: static32-run, run: source .github/setenv.sh && c4_run_test static32}
|
||||
- {name: static32-pack, run: source .github/setenv.sh && c4_pack static32}
|
||||
- {name: static32-pack, run: source .github/setenv.sh && c4_package static32}
|
||||
- name: shared32-configure---------------------------------------------------
|
||||
run: source .github/setenv.sh && c4_cfg_test shared32
|
||||
- {name: shared32-build, run: source .github/setenv.sh && c4_build_test shared32}
|
||||
- {name: shared32-run, run: source .github/setenv.sh && c4_run_test shared32}
|
||||
- {name: shared32-pack, run: source .github/setenv.sh && c4_pack shared32}
|
||||
- {name: shared32-pack, run: source .github/setenv.sh && c4_package shared32}
|
||||
|
||||
# #----------------------------------------------------------------------------
|
||||
# # https://blog.kitware.com/static-checks-with-cmake-cdash-iwyu-clang-tidy-lwyu-cpplint-and-cppcheck/
|
||||
@@ -516,7 +515,7 @@ jobs:
|
||||
- {bt: Release, os: ubuntu-18.04}
|
||||
- {bt: Release, os: windows-2019}
|
||||
env: {STD: "${{matrix.std}}", CXX_: "${{matrix.cxx}}", BT: "${{matrix.bt}}", BITLINKS: "${{matrix.bitlinks}}", VG: "${{matrix.vg}}", SAN: "${{matrix.san}}", LINT: "${{matrix.lint}}", OS: "${{matrix.os}}",
|
||||
CMAKE_FLAGS: "-DRYML_DEV=OFF -DRYML_BUILD_API=ON -DRYML_API_TESTS=ON -DRYML_API_BENCHMARKS=OFF"}
|
||||
API: ON, CMAKE_FLAGS: "-DRYML_DEV=OFF -DRYML_BUILD_API=ON -DRYML_API_TESTS=ON -DRYML_API_BENCHMARKS=OFF"}
|
||||
steps:
|
||||
- {name: checkout, uses: actions/checkout@v2, with: {submodules: recursive}}
|
||||
- {name: install requirements, run: source .github/reqs.sh && c4_install_test_requirements $OS}
|
||||
@@ -526,221 +525,119 @@ jobs:
|
||||
- {name: api-shared64-python-build, run: source .github/setenv.sh && c4_build_target shared64 ryml-api-python3}
|
||||
- {name: api-shared64-python-test, run: source .github/setenv.sh && c4_build_target shared64 ryml-api-test-python3}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# useful to iterate when fixing the release
|
||||
# ver=0.0.0-rc1 ; ( set -x ; git tag -d v$ver ; git push origin :v$ver ) ; (set -x ; set -e ; git add -u ; git commit --amend --no-edit ; git tag --annotate --message "v$ver" "v$ver" ; git push -f --tags origin gh_actions )
|
||||
|
||||
#--------------------------------------------------------------------------------------
|
||||
# https://cristianadam.eu/20191222/using-github-actions-with-c-plus-plus-and-cmake/
|
||||
#name: CMake Build Matrix
|
||||
#on: [push]
|
||||
#jobs:
|
||||
#
|
||||
# build:
|
||||
# name: ${{ matrix.config.name }}
|
||||
# runs-on: ${{ matrix.config.os }}
|
||||
# strategy:
|
||||
# fail-fast: false
|
||||
# matrix:
|
||||
# config:
|
||||
# - {
|
||||
# name: "Windows Latest MSVC", artifact: "Windows-MSVC.tar.xz",
|
||||
# os: windows-latest,
|
||||
# build_type: "Release", cc: "cl", cxx: "cl",
|
||||
# environment_script: "C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Auxiliary/Build/vcvars64.bat"
|
||||
# }
|
||||
# - {
|
||||
# name: "Windows Latest MinGW", artifact: "Windows-MinGW.tar.xz",
|
||||
# os: windows-latest,
|
||||
# build_type: "Release", cc: "gcc", cxx: "g++"
|
||||
# }
|
||||
# - {
|
||||
# name: "Ubuntu Latest GCC", artifact: "Linux.tar.xz",
|
||||
# os: ubuntu-latest,
|
||||
# build_type: "Release", cc: "gcc", cxx: "g++"
|
||||
# }
|
||||
# - {
|
||||
# name: "macOS Latest Clang", artifact: "macOS.tar.xz",
|
||||
# os: macos-latest,
|
||||
# build_type: "Release", cc: "clang", cxx: "clang++"
|
||||
# }
|
||||
# steps:
|
||||
# - uses: actions/checkout@v1
|
||||
# - name: Download Ninja and CMake
|
||||
# id: cmake_and_ninja
|
||||
# shell: cmake -P {0}
|
||||
# run: |
|
||||
# set(ninja_version "1.9.0")
|
||||
# set(cmake_version "3.16.2")
|
||||
# message(STATUS "Using host CMake version: ${CMAKE_VERSION}")
|
||||
# if ("${{ runner.os }}" STREQUAL "Windows")
|
||||
# set(ninja_suffix "win.zip")
|
||||
# set(cmake_suffix "win64-x64.zip")
|
||||
# set(cmake_dir "cmake-${cmake_version}-win64-x64/bin")
|
||||
# elseif ("${{ runner.os }}" STREQUAL "Linux")
|
||||
# set(ninja_suffix "linux.zip")
|
||||
# set(cmake_suffix "Linux-x86_64.tar.gz")
|
||||
# set(cmake_dir "cmake-${cmake_version}-Linux-x86_64/bin")
|
||||
# elseif ("${{ runner.os }}" STREQUAL "macOS")
|
||||
# set(ninja_suffix "mac.zip")
|
||||
# set(cmake_suffix "Darwin-x86_64.tar.gz")
|
||||
# set(cmake_dir "cmake-${cmake_version}-Darwin-x86_64/CMake.app/Contents/bin")
|
||||
# endif()
|
||||
# set(ninja_url "https://github.com/ninja-build/ninja/releases/download/v${ninja_version}/ninja-${ninja_suffix}")
|
||||
# file(DOWNLOAD "${ninja_url}" ./ninja.zip SHOW_PROGRESS)
|
||||
# execute_process(COMMAND ${CMAKE_COMMAND} -E tar xvf ./ninja.zip)
|
||||
# set(cmake_url "https://github.com/Kitware/CMake/releases/download/v${cmake_version}/cmake-${cmake_version}-${cmake_suffix}")
|
||||
# file(DOWNLOAD "${cmake_url}" ./cmake.zip SHOW_PROGRESS)
|
||||
# execute_process(COMMAND ${CMAKE_COMMAND} -E tar xvf ./cmake.zip)
|
||||
# # Save the path for other steps
|
||||
# file(TO_CMAKE_PATH "$ENV{GITHUB_WORKSPACE}/${cmake_dir}" cmake_dir)
|
||||
# message("::set-output name=cmake_dir::${cmake_dir}")
|
||||
# if (NOT "${{ runner.os }}" STREQUAL "Windows")
|
||||
# execute_process(
|
||||
# COMMAND chmod +x ninja
|
||||
# COMMAND chmod +x ${cmake_dir}/cmake
|
||||
# )
|
||||
# endif()
|
||||
# - name: Configure
|
||||
# shell: cmake -P {0}
|
||||
# run: |
|
||||
# set(ENV{CC} ${{ matrix.config.cc }})
|
||||
# set(ENV{CXX} ${{ matrix.config.cxx }})
|
||||
# if ("${{ runner.os }}" STREQUAL "Windows" AND NOT "x${{ matrix.config.environment_script }}" STREQUAL "x")
|
||||
# execute_process(
|
||||
# COMMAND "${{ matrix.config.environment_script }}" && set
|
||||
# OUTPUT_FILE environment_script_output.txt
|
||||
# )
|
||||
# file(STRINGS environment_script_output.txt output_lines)
|
||||
# foreach(line IN LISTS output_lines)
|
||||
# if (line MATCHES "^([a-zA-Z0-9_-]+)=(.*)$")
|
||||
# set(ENV{${CMAKE_MATCH_1}} "${CMAKE_MATCH_2}")
|
||||
# endif()
|
||||
# endforeach()
|
||||
# endif()
|
||||
# file(TO_CMAKE_PATH "$ENV{GITHUB_WORKSPACE}/ninja" ninja_program)
|
||||
# execute_process(
|
||||
# COMMAND ${{ steps.cmake_and_ninja.outputs.cmake_dir }}/cmake
|
||||
# -S .
|
||||
# -B build
|
||||
# -D CMAKE_BUILD_TYPE=${{ matrix.config.build_type }}
|
||||
# -G Ninja
|
||||
# -D CMAKE_MAKE_PROGRAM=${ninja_program}
|
||||
# RESULT_VARIABLE result
|
||||
# )
|
||||
# if (NOT result EQUAL 0)
|
||||
# message(FATAL_ERROR "Bad exit status")
|
||||
# endif()
|
||||
# - name: Build
|
||||
# shell: cmake -P {0}
|
||||
# run: |
|
||||
# set(ENV{NINJA_STATUS} "[%f/%t %o/sec] ")
|
||||
# if ("${{ runner.os }}" STREQUAL "Windows" AND NOT "x${{ matrix.config.environment_script }}" STREQUAL "x")
|
||||
# file(STRINGS environment_script_output.txt output_lines)
|
||||
# foreach(line IN LISTS output_lines)
|
||||
# if (line MATCHES "^([a-zA-Z0-9_-]+)=(.*)$")
|
||||
# set(ENV{${CMAKE_MATCH_1}} "${CMAKE_MATCH_2}")
|
||||
# endif()
|
||||
# endforeach()
|
||||
# endif()
|
||||
# execute_process(
|
||||
# COMMAND ${{ steps.cmake_and_ninja.outputs.cmake_dir }}/cmake --build build
|
||||
# RESULT_VARIABLE result
|
||||
# )
|
||||
# if (NOT result EQUAL 0)
|
||||
# message(FATAL_ERROR "Bad exit status")
|
||||
# endif()
|
||||
# - name: Run tests
|
||||
# shell: cmake -P {0}
|
||||
# run: |
|
||||
# include(ProcessorCount)
|
||||
# ProcessorCount(N)
|
||||
# execute_process(
|
||||
# COMMAND ${{ steps.cmake_and_ninja.outputs.cmake_dir }}/ctest -j ${N}
|
||||
# WORKING_DIRECTORY build
|
||||
# RESULT_VARIABLE result
|
||||
# )
|
||||
# if (NOT result EQUAL 0)
|
||||
# message(FATAL_ERROR "Running tests failed!")
|
||||
# endif()
|
||||
# - name: Install Strip
|
||||
# run: ${{ steps.cmake_and_ninja.outputs.cmake_dir }}/cmake --install build --prefix instdir --strip
|
||||
# - name: Pack
|
||||
# working-directory: instdir
|
||||
# run: ${{ steps.cmake_and_ninja.outputs.cmake_dir }}/cmake -E tar cJfv ../${{ matrix.config.artifact }} .
|
||||
# - name: Upload
|
||||
# uses: actions/upload-artifact@v1
|
||||
# with:
|
||||
# path: ./${{ matrix.config.artifact }}
|
||||
# name: ${{ matrix.config.artifact }}
|
||||
#
|
||||
# release:
|
||||
# if: contains(github.ref, 'tags/v')
|
||||
# runs-on: ubuntu-latest
|
||||
# needs: build
|
||||
# steps:
|
||||
# - name: Create Release
|
||||
# id: create_release
|
||||
# uses: actions/create-release@v1.0.0
|
||||
# env:
|
||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
# with:
|
||||
# tag_name: ${{ github.ref }}
|
||||
# release_name: Release ${{ github.ref }}
|
||||
# draft: false
|
||||
# prerelease: false
|
||||
# - name: Store Release url
|
||||
# run: |
|
||||
# echo "${{ steps.create_release.outputs.upload_url }}" > ./upload_url
|
||||
# - uses: actions/upload-artifact@v1
|
||||
# with:
|
||||
# path: ./upload_url
|
||||
# name: upload_url
|
||||
#
|
||||
# publish:
|
||||
# if: contains(github.ref, 'tags/v')
|
||||
# name: ${{ matrix.config.name }}
|
||||
# runs-on: ${{ matrix.config.os }}
|
||||
# strategy:
|
||||
# fail-fast: false
|
||||
# matrix:
|
||||
# config:
|
||||
# - {
|
||||
# name: "Windows Latest MSVC", artifact: "Windows-MSVC.tar.xz",
|
||||
# os: ubuntu-latest
|
||||
# }
|
||||
# - {
|
||||
# name: "Windows Latest MinGW", artifact: "Windows-MinGW.tar.xz",
|
||||
# os: ubuntu-latest
|
||||
# }
|
||||
# - {
|
||||
# name: "Ubuntu Latest GCC", artifact: "Linux.tar.xz",
|
||||
# os: ubuntu-latest
|
||||
# }
|
||||
# - {
|
||||
# name: "macOS Latest Clang", artifact: "macOS.tar.xz",
|
||||
# os: ubuntu-latest
|
||||
# }
|
||||
# needs: release
|
||||
# steps:
|
||||
# - name: Download artifact
|
||||
# uses: actions/download-artifact@v1
|
||||
# with:
|
||||
# name: ${{ matrix.config.artifact }}
|
||||
# path: ./
|
||||
# - name: Download URL
|
||||
# uses: actions/download-artifact@v1
|
||||
# with:
|
||||
# name: upload_url
|
||||
# path: ./
|
||||
# - id: set_upload_url
|
||||
# run: |
|
||||
# upload_url=`cat ./upload_url`
|
||||
# echo ::set-output name=upload_url::$upload_url
|
||||
# - name: Upload to Release
|
||||
# id: upload_to_release
|
||||
# uses: actions/upload-release-asset@v1.0.1
|
||||
# env:
|
||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
# with:
|
||||
# upload_url: ${{ steps.set_upload_url.outputs.upload_url }}
|
||||
# asset_path: ./${{ matrix.config.artifact }}
|
||||
# asset_name: ${{ matrix.config.artifact }}
|
||||
# asset_content_type: application/x-gtar
|
||||
release:
|
||||
if: contains(github.ref, 'tags/v')
|
||||
runs-on: ubuntu-latest
|
||||
#needs: [test_coverage, test_windows, test_macosx, test_gcc_canary, test_clang_canary, test_clang_tidy, test_gcc_extended, test_clang_extended, test_clang_sanitize, test_api]
|
||||
steps:
|
||||
- name: Get version
|
||||
id: get_version
|
||||
# https://github.community/t/how-to-get-just-the-tag-name/16241/11
|
||||
run: |
|
||||
echo ::set-output name=SRC_TAG::${GITHUB_REF#refs/tags/}
|
||||
echo ::set-output name=SRC_VERSION::${GITHUB_REF#refs/tags/v}
|
||||
echo SRC_TAG=${GITHUB_REF#refs/tags/}
|
||||
echo SRC_VERSION=${GITHUB_REF#refs/tags/v}
|
||||
- {name: checkout, uses: actions/checkout@v2, with: {submodules: recursive}}
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
uses: actions/create-release@v1 # https://github.com/marketplace/actions/create-a-release
|
||||
env:
|
||||
GITHUB_TOKEN: "${{secrets.GITHUB_TOKEN}}"
|
||||
SRC_TAG: "${{steps.get_version.outputs.SRC_TAG}}"
|
||||
SRC_VERSION: "${{steps.get_version.outputs.SRC_VERSION}}"
|
||||
with:
|
||||
tag_name: ${{github.ref}}
|
||||
release_name: Release ${{steps.get_version.outputs.SRC_VERSION}}
|
||||
draft: true # to create a draft (unpublished) release, false to create a published one. Default: false
|
||||
prerelease: ${{contains(github.ref, '-rc')}}
|
||||
body_path: ${{github.workspace}}/changelog/${{steps.get_version.outputs.SRC_VERSION}}.md
|
||||
- name: Store Release URL
|
||||
run: |
|
||||
echo "UPLOAD_URL: ${{steps.create_release.outputs.upload_url}}"
|
||||
echo "${{steps.create_release.outputs.upload_url}}" > ./upload_url
|
||||
- name: Upload Release URL
|
||||
uses: actions/upload-artifact@v1
|
||||
with:
|
||||
path: ./upload_url
|
||||
name: upload_url
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
publish:
|
||||
needs: release
|
||||
name: publish/${{matrix.config.os}}/${{matrix.config.gen}}
|
||||
runs-on: ${{matrix.config.os}}
|
||||
env: {DEV: OFF, BT: Release, OS: "${{matrix.config.os}}", CXX_: "${{matrix.config.cxx}}", GEN: "${{matrix.config.gen}}"}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
config:
|
||||
# name of the artifact | suffix | cpack gen | mime type | os | cxx
|
||||
- {name: Ubuntu 20.04 deb , sfx: unix64.deb, gen: DEB , mime: vnd.debian.binary-package, os: ubuntu-20.04 }
|
||||
- {name: Ubuntu 20.04 sh , sfx: unix64.sh , gen: STGZ , mime: x-sh , os: ubuntu-20.04 }
|
||||
- {name: Ubuntu 18.04 deb , sfx: unix64.deb, gen: DEB , mime: vnd.debian.binary-package, os: ubuntu-18.04 }
|
||||
- {name: Ubuntu 18.04 sh , sfx: unix64.sh , gen: STGZ , mime: x-sh , os: ubuntu-18.04 }
|
||||
- {name: Ubuntu 16.04 deb , sfx: unix64.deb, gen: DEB , mime: vnd.debian.binary-package, os: ubuntu-16.04 }
|
||||
- {name: Ubuntu 16.04 sh , sfx: unix64.sh , gen: STGZ , mime: x-sh , os: ubuntu-16.04 }
|
||||
- {name: Windows VS2017 zip, sfx: win64.zip , gen: ZIP , mime: zip , os: windows-2016, cxx: vs2017}
|
||||
- {name: Windows VS2019 zip, sfx: win64.zip , gen: ZIP , mime: zip , os: windows-2019, cxx: vs2019}
|
||||
- {name: MacOSX sh , sfx: apple64.sh, gen: STGZ , mime: x-sh , os: macos-11.0 , cxx: xcode }
|
||||
steps:
|
||||
- name: Get version
|
||||
id: get_version
|
||||
# https://github.community/t/how-to-get-just-the-tag-name/16241/11
|
||||
run: |
|
||||
echo ::set-output name=SRC_VERSION::${GITHUB_REF#refs/tags/v}
|
||||
echo SRC_VERSION=${GITHUB_REF#refs/tags/v}
|
||||
echo GEN=$GEN
|
||||
- name: Download upload URL
|
||||
uses: actions/download-artifact@v1
|
||||
with: {name: upload_url, path: ./}
|
||||
- name: Preprocess
|
||||
id: preprocess
|
||||
run: |
|
||||
upload_url=`cat ./upload_url`
|
||||
echo ::set-output name=upload_url::$upload_url
|
||||
# the package has the same name in multiple same-platform+same-sfx
|
||||
# instances, but the uploaded asset needs to have different names:
|
||||
sfx=${{matrix.config.sfx}}
|
||||
case "${{matrix.config.os}}" in
|
||||
ubuntu*)
|
||||
sfx=$(echo $sfx | sed "s:unix64:${{matrix.config.os}}:")
|
||||
;;
|
||||
windows*)
|
||||
sfx=$(echo $sfx | sed "s:win64:win64-${{matrix.config.cxx}}:")
|
||||
;;
|
||||
macos*)
|
||||
sfx=$(echo $sfx | sed "s:apple64:macosx-${{matrix.config.cxx}}:")
|
||||
;;
|
||||
esac
|
||||
asset_name=ryml-${{steps.get_version.outputs.SRC_VERSION}}-$sfx
|
||||
echo ::set-output name=asset_name::$asset_name
|
||||
- {name: checkout, uses: actions/checkout@v2, with: {submodules: recursive}}
|
||||
- {name: install requirements, run: source .github/reqs.sh && c4_install_test_requirements $OS}
|
||||
- {name: show info, run: source .github/setenv.sh && c4_show_info }
|
||||
- name: shared64-configure---------------------------------------------------
|
||||
run: source .github/setenv.sh && c4_cfg_test shared64
|
||||
- {name: shared64-build, run: source .github/setenv.sh && c4_build_target shared64}
|
||||
- name: shared64-pack
|
||||
run: |
|
||||
source .github/setenv.sh && c4_package shared64 $GEN
|
||||
src=./build/shared64/ryml-${{steps.get_version.outputs.SRC_VERSION}}-${{matrix.config.sfx}}
|
||||
dst=${{steps.preprocess.outputs.asset_name}}
|
||||
cp -fav $src $dst
|
||||
- name: Upload artifact
|
||||
id: upload_to_release
|
||||
uses: actions/upload-release-asset@v1.0.1
|
||||
env: {GITHUB_TOKEN: "${{secrets.GITHUB_TOKEN}}"}
|
||||
with:
|
||||
upload_url: ${{steps.preprocess.outputs.upload_url}}
|
||||
asset_path: ${{steps.preprocess.outputs.asset_name}}
|
||||
asset_name: ${{steps.preprocess.outputs.asset_name}}
|
||||
asset_content_type: application/${{matrix.config.mime}}
|
||||
#- name: Report artifact URL
|
||||
# run: echo "artifact uploaded successfully: ${{steps.upload_to_release.outputs.browser_download_url}}"
|
||||
@@ -1,10 +1,15 @@
|
||||
# Changelog
|
||||
This is the first ryml release. Future releases will have a more organized
|
||||
changelog; for now, only recent major changes are listed.
|
||||
|
||||
Currently there are no ryml releases. However, the master branch is always
|
||||
stable; it is validated by requiring all tests to succeed before merging to it.
|
||||
So for now, only major changes to master are listed.
|
||||
Please be aware that there are still some anticipated breaking changes in the
|
||||
API before releasing the 1.0 major version. These are highlighted in [the
|
||||
repo ROADMAP](installs](https://github.com/tree/tags/v0.0.1/ROADMAP.md).
|
||||
|
||||
* 2020/October
|
||||
* [MR#89](https://github.com/biojppm/rapidyaml/pull/89):
|
||||
* fix python API generation in windows
|
||||
* use github actions for testing and releasing
|
||||
from [c4core](https://github.com/biojppm/cmake/issues/1).
|
||||
* [MR#88](https://github.com/biojppm/rapidyaml/pull/88): [fix MacOS
|
||||
compilation and
|
||||
installs](https://github.com/biojppm/rapidyaml/issues/75). This is a fix
|
||||
@@ -23,7 +28,6 @@ So for now, only major changes to master are listed.
|
||||
node << var; // "1" or "0"
|
||||
node << c4::fmt::boolalpha(var); // "true" or "false"
|
||||
```
|
||||
|
||||
* 2020/September
|
||||
* [***Breaking change***] [MR#85](https://github.com/biojppm/rapidyaml/pull/85)
|
||||
null values in YAML are now parsed to null
|
||||
@@ -43,7 +47,6 @@ So for now, only major changes to master are listed.
|
||||
```
|
||||
* [MR#81](https://github.com/biojppm/rapidyaml/pull/81): Always compile
|
||||
with extra pedantic warnings.
|
||||
|
||||
* 2020/May
|
||||
* [***Breaking change***] the error callback now receives a source location object:
|
||||
```c++
|
||||
Submodule ext/c4core updated: 690e7a69de...555d040ab1
3
requirements.txt
Normal file
3
requirements.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
tbump
|
||||
gitchangelog
|
||||
pystache
|
||||
14
tbump.toml
14
tbump.toml
@@ -1,9 +1,9 @@
|
||||
# Uncomment this if your project is hosted on GitHub:
|
||||
github_url = "https://github.com/biojppm/rapidyaml/"
|
||||
|
||||
# https://github.com/TankerHQ/tbump
|
||||
# https://hackernoon.com/lets-automate-version-number-updates-not-a91q3x7n
|
||||
|
||||
# Uncomment this if your project is hosted on GitHub:
|
||||
github_url = "https://github.com/biojppm/rapidyaml/"
|
||||
|
||||
[version]
|
||||
current = "0.0.0-rc0"
|
||||
|
||||
@@ -20,7 +20,7 @@ regex = '''
|
||||
'''
|
||||
|
||||
[git]
|
||||
message_template = "Bump to {new_version}"
|
||||
message_template = "[chore] version {new_version}"
|
||||
tag_template = "v{new_version}"
|
||||
|
||||
# For each file to patch, add a [[file]] config section containing
|
||||
@@ -37,6 +37,12 @@ search = "c4_project\\(VERSION {current_version}"
|
||||
# name = "check changelog"
|
||||
# cmd = "grep -q {new_version} Changelog.rst"
|
||||
|
||||
# TODO: add version header, containing commit hash
|
||||
# TODO: consolidate changelog from the git logs:
|
||||
# https://pypi.org/project/gitchangelog/
|
||||
# https://blogs.sap.com/2018/06/22/generating-release-notes-from-git-commit-messages-using-basic-shell-commands-gitgrep/
|
||||
# https://medium.com/better-programming/create-your-own-changelog-generator-with-git-aefda291ea93
|
||||
|
||||
# Or run some commands after the git tag and the branch
|
||||
# have been pushed:
|
||||
# [[after_push]]
|
||||
|
||||
Reference in New Issue
Block a user