Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
319 commits
Select commit Hold shift + click to select a range
e403e78
Fix missing macro undefinition
mikkoi Sep 1, 2019
24901a4
Raise minimum CMake version to 3.9
mikkoi Jun 8, 2019
27e3eba
Add tags DESCRIPTION and LANGUAGES to project()
mikkoi Jun 8, 2019
37bb15b
Create variables PROJECT_VERSION_*
mikkoi Jun 9, 2019
e831f56
Add command 'cmake --version' to appveyor builds
mikkoi Jun 8, 2019
3c78db4
Remove support for old CMake version
mikkoi Jun 8, 2019
749ceae
Add alarm.c to the build
mikkoi Jun 22, 2019
982c33a
Merge pull request #219 from mikkoi/fix-macro-definition
brarcher Sep 3, 2019
b9ab595
Merge branch 'master' into is-makeinfo-required
brarcher Sep 3, 2019
6064051
Add 'cmake --version' to Travis script
mikkoi Jun 23, 2019
f63378c
Add HAVE_UNISTD_H to CMake and config.h.in
mikkoi Jun 8, 2019
b35afad
Add missing header file when HAVE_FORK
mikkoi Aug 2, 2019
f5c8e5f
Reindent CMake file to 2 chars indentation
mikkoi Aug 2, 2019
d480b36
Add pkgconfig/check.pc file generation to CMake
mikkoi Sep 2, 2019
af2a3f0
Fix missing macro undefinition
mikkoi Sep 1, 2019
09bd2b8
Remove non-CMake style option CHECK_ENABLE_TESTS
mikkoi Sep 2, 2019
12fb004
Add param @ONLY to CMake configure_file()
mikkoi Sep 8, 2019
93aacdf
Merge pull request #212 from mikkoi/is-makeinfo-required
brarcher Sep 8, 2019
a77491a
Improve check_stdint.h creation in CMake
mikkoi Sep 8, 2019
f2d9a1d
Merge branch 'master' into fix-small-issues-2
brarcher Sep 8, 2019
4cd6b30
Merge pull request #209 from mikkoi/fix-small-issues-2
brarcher Sep 9, 2019
3444763
Start using GNUInstallDirs in every CMake install()
mikkoi Sep 8, 2019
02783ad
Add libcompat code directly to libcheck
mikkoi Sep 8, 2019
e241d5c
Change definition CK_DLL_EXP from global to target specific
mikkoi Jun 23, 2019
cd88edf
Remove MSVC specific dllexport
mikkoi Sep 13, 2019
cf07d23
Add better explanation for '#define CK_DLL_EXP'
mikkoi Sep 13, 2019
d0f1e1d
Add target shared library to CMake build
mikkoi Jun 23, 2019
111d372
Remove the needless resetting of PROJECT_VERSION
mikkoi Sep 14, 2019
4e3b3f5
Add variable VERSION to pkgconfig/check.pc configuration
mikkoi Sep 14, 2019
604e6f3
Truncate PROJECT_VERSION to three components
mikkoi Sep 14, 2019
c5cc43f
Correct indentation
mikkoi Sep 14, 2019
12d566b
Add option ENABLE_MEMORY_LEAKING_TESTS
mikkoi Sep 14, 2019
517bf26
Remove unneeded include()
mikkoi Sep 14, 2019
7ec7680
Add more items to TODO
mikkoi Sep 14, 2019
ecf337c
Merge pull request #220 from mikkoi/so-for-visual-studio
brarcher Sep 15, 2019
2f80f72
Merge branch 'master' into more-todo
brarcher Sep 15, 2019
0b80af2
Merge pull request #221 from mikkoi/more-todo
brarcher Sep 16, 2019
c6087d2
Add comments about library creation
mikkoi Oct 19, 2019
86fe1ba
Correct wrong Win dynamic library name
mikkoi Oct 19, 2019
8608dc0
Add support for CMake User Package Registry
mikkoi Oct 20, 2019
fb49d79
Add header check_stdint.h to public headers
mikkoi Oct 20, 2019
d6a6260
Update NEWS
brarcher Oct 20, 2019
401856d
Remove the forcing of the CMake build type
mikkoi Oct 19, 2019
003e225
Merge pull request #226 from mikkoi/fix-wrong-library-filename
brarcher Oct 20, 2019
1402361
Merge branch 'master' into support-cmake-package-registry
brarcher Oct 20, 2019
ca33ec0
Merge pull request #227 from mikkoi/support-cmake-package-registry
brarcher Oct 20, 2019
67c53e2
Merge branch 'master' into fix-forced-build-type
brarcher Oct 20, 2019
2b18886
Merge pull request #228 from mikkoi/fix-forced-build-type
brarcher Oct 21, 2019
f867d31
Update NEWS with additional changes
brarcher Oct 21, 2019
7bac1e2
Update hash and date for 0.13.0 release in NEWS
brarcher Oct 21, 2019
5abbd6e
Merge branch 'master' into pre-v0.13
brarcher Oct 21, 2019
903f64b
Fix required C standard from C90 to C99
mikkoi Oct 20, 2019
f4d5b71
Add missing include for waitpid()
mikkoi Oct 20, 2019
eb3e1b1
Change C++ style comments to C style
mikkoi Oct 20, 2019
90d03f3
Merge pull request #224 from libcheck/pre-v0.13
brarcher Oct 21, 2019
0fc33bd
Update index.html for 0.13.0 release
brarcher Oct 22, 2019
a1890f6
Restore development header in NEWS
brarcher Oct 22, 2019
711da1e
Fix typo in NEWS
brarcher Oct 22, 2019
447e759
Merge pull request #230 from libcheck/post-0.13
brarcher Oct 23, 2019
a838e5d
Merge branch 'master' into fix-c-standard-to-c99
brarcher Oct 25, 2019
5c6ba01
Merge pull request #225 from mikkoi/fix-c-standard-to-c99
brarcher Oct 25, 2019
b0e84f6
configure: check for makeinfo instead of tex for documentation
nmeum Oct 25, 2019
f65a5c4
Rename CMake project from 'check' to 'Check'
mikkoi Oct 25, 2019
d960b14
Remove needless internal (cache) variable
mikkoi Oct 25, 2019
8160201
Merge pull request #231 from nmeum/makeinfo
brarcher Oct 26, 2019
0b7992d
check_check_master: Fix printf format
neheb Oct 30, 2019
a5b644d
Merge branch 'master' into rename-cmake-project
brarcher Oct 30, 2019
c5d9592
Merge pull request #232 from mikkoi/rename-cmake-project
brarcher Oct 31, 2019
69056b0
Merge branch 'master' into patch-1
brarcher Nov 1, 2019
c008c61
Merge pull request #233 from neheb/patch-1
brarcher Nov 1, 2019
bd112e2
Change CMAKE_BINARY_DIR to CMAKE_CURRENT_BINARY_DIR
mikkoi Jan 10, 2020
9448e4a
Add aliases Check::check and Check::checkShared
mikkoi Jan 10, 2020
b7af21c
Change C++ comment to C style, clean another comment
mikkoi Jan 10, 2020
2f17905
Reduce the scope of variables
mikkoi Jan 11, 2020
db2f31a
Activate CMP0090 (NEW)
mikkoi Jan 9, 2020
2c0d6a9
Fix whitespace
mikkoi Jan 11, 2020
2952d1d
Add Travis build: using Check in CMake build
mikkoi Jan 14, 2020
674dfdb
Detect if being built embedded in another CMake build
mikkoi Jan 14, 2020
d66c604
Merge pull request #239 from mikkoi/fix-for-cmake-fetchcontent
brarcher Jan 18, 2020
5f8af72
Add Repology badge to README.md
mikkoi Jan 20, 2020
0c18fbe
Merge pull request #243 from mikkoi/add-repology-badge
brarcher Jan 21, 2020
0076ec6
Update version to 0.14.0
brarcher Jan 25, 2020
f47532d
Update for release
brarcher Jan 25, 2020
d86594e
Merge pull request #246 from libcheck/pre-v0.14.0
brarcher Jan 26, 2020
03cfa4f
Restore development header in NEWS
brarcher Jan 26, 2020
8900cd3
Merge pull request #247 from libcheck/post-0.14.0
brarcher Jan 27, 2020
7d1dc83
Add Vim modeline to CMake files
mikkoi Jan 23, 2020
8759266
Add and update copyright texts
mikkoi Jan 29, 2020
c30729f
Detect if being built embedded in another CMake build #2
mikkoi Jan 29, 2020
5189434
Refactor pack_int() and upack_int()
mikkoi Feb 29, 2020
3b01e99
Refactor check_pack.c functions to use size_t
mikkoi Feb 29, 2020
f2fafec
Create macros to ignore -Wbad-function-cast
mikkoi Mar 1, 2020
28e163e
Fix read_buf() and get_result() to use size_t
mikkoi Mar 1, 2020
c41bcf9
Merge pull request #244 from mikkoi/fix-for-cmake-fetchcontent-2
brarcher Mar 8, 2020
a2445d3
Merge branch 'master' into fix-check-pack
brarcher Mar 9, 2020
dbbe2b8
Create ccpp.yml
brarcher Mar 9, 2020
55d8ee2
Merge pull request #250 from mikkoi/fix-check-pack
brarcher Mar 9, 2020
67f18d1
Remove unused variables from tests
mikkoi Feb 6, 2020
9868050
Mark float literals properly with suffix 'F'
mikkoi Feb 6, 2020
1add857
Use strtoul instead of atoi
mikkoi Feb 6, 2020
57fc493
Change signature of internal test func
mikkoi Feb 11, 2020
70d28f9
Change variable from int to size_t
mikkoi Feb 11, 2020
c176543
Change variable from ssize_t to size_t
mikkoi Feb 11, 2020
b7d5231
Change sig of internal func non_pass()
mikkoi Feb 12, 2020
5e2b32f
Add macro CK_ATTRIBUTE_FORMAT
mikkoi Feb 13, 2020
0015a1b
Correct function type of snprintf
mikkoi Feb 15, 2020
b6f8806
Document changes to NEWS
mikkoi Mar 9, 2020
28fd45a
Add to TODO: does compiler support __attribute__
mikkoi Mar 9, 2020
dc66d6b
Add package installs to ccpp.yml
brarcher Mar 10, 2020
88df96b
Add sudo to make installs in ccpp.yml
brarcher Mar 10, 2020
d717c73
Install automake in ccpp.yml
brarcher Mar 10, 2020
dfd837d
Install pkg-config on OSX in ccpp.yml
brarcher Mar 10, 2020
5c79502
Skip prerelease on OSX for ccpp.yml
brarcher Mar 10, 2020
d8ba6bd
Add option to disable timeout unit tests in CMake
brarcher Mar 15, 2020
5188c23
Disable timeout tests on OSX for Action
brarcher Mar 15, 2020
d294c65
Disable timeout tests on configure test on OSX
brarcher Mar 15, 2020
638d962
Build example on Linux in Actions
brarcher Mar 15, 2020
e8ca846
Split autotools tests into separate jobs
brarcher Mar 15, 2020
5d0d87c
Check scan-build on Linux
brarcher Mar 15, 2020
9ec47ca
Install scan-build in Actions
brarcher Mar 16, 2020
80353e7
Install scan-build with apt
brarcher Mar 16, 2020
32b4668
Revert "Install scan-build with apt"
brarcher-google May 24, 2020
19cbe79
Revert "Install scan-build in Actions"
brarcher-google May 24, 2020
2d145b0
Revert "Check scan-build on Linux"
brarcher-google May 24, 2020
f31c2d1
Merge branch 'master' into brarcher-travisci-to-action
brarcher May 24, 2020
ea9b921
Merge pull request #251 from libcheck/brarcher-travisci-to-action
brarcher May 24, 2020
b602c75
Add various Windows builds to ccpp.yml
brarcher May 24, 2020
e1bb002
Merge pull request #258 from libcheck/brarcher-windows-actions
brarcher May 25, 2020
8fd7f77
Split Github actions into separate workflows
brarcher-google May 25, 2020
a7aa016
Update badges in README to point to Github workflow status
brarcher-google May 25, 2020
fafb129
Merge pull request #260 from libcheck/split-workflows
brarcher May 25, 2020
fc6490f
Enable clang's scan-build on Github actions
brarcher May 25, 2020
ee2c73e
Merge pull request #261 from libcheck/actions-scan-build
brarcher May 25, 2020
a8d71b2
Create CMake project usage test for Github actions
brarcher May 25, 2020
0b7ad92
Remove Travis-CI config
brarcher-google May 26, 2020
20bf5f3
Merge pull request #262 from libcheck/actions-cmake-project-usage
brarcher May 26, 2020
ea74c22
Merge branch 'master' into fix-small-issues-5
mikkoi May 26, 2020
9bcf6e8
[windows] Implement pthread_mutex for Windows
walac May 21, 2020
2ed5f32
Merge pull request #257 from walac/windows-mutex-lock
brarcher Jun 21, 2020
05dc641
Merge branch 'master' into fix-small-issues-5
brarcher Jun 21, 2020
c94962c
Merge pull request #249 from mikkoi/fix-small-issues-5
brarcher Jun 21, 2020
9f1f3b7
Update NEWS with changes since 0.14.0
brarcher Jun 21, 2020
18d83fb
Merge pull request #265 from libcheck/pre-v0.15.0
brarcher Jun 21, 2020
1b6aabb
Update for release
brarcher-google Jun 21, 2020
aa8657b
Merge pull request #266 from libcheck/pre-v0.15.0
brarcher Jun 21, 2020
910c6a0
Update development header in NEWS
brarcher Jun 21, 2020
ac8ceb7
Update details in automatic building and testing
brarcher Jun 21, 2020
f32aaf1
Merge pull request #267 from libcheck/news-1
brarcher Jun 22, 2020
b0fe3c1
Merge branch 'master' into hacking-updates
brarcher Jun 22, 2020
535d2c3
Merge pull request #268 from libcheck/hacking-updates
brarcher Jun 22, 2020
0212856
Fix format specifiers that do not match the argument types
jamesjer Jun 22, 2020
7ac1fcb
Make CK_ATTRIBUTE_FORMAT refer to the right arguments.
jamesjer Jun 22, 2020
2325bcb
Improve the info directory entry
jamesjer Jun 22, 2020
184ea17
Merge pull request #273 from jamesjer/info
brarcher Jun 23, 2020
2c2071a
Merge branch 'master' into formatspec
brarcher Jun 23, 2020
a2c8ab9
Merge pull request #271 from jamesjer/formatspec
brarcher Jun 23, 2020
0011061
Create linux builds for gcc and clang
brarcher Jun 27, 2020
ff56ffa
Merge pull request #277 from libcheck/actions-gcc-clang
brarcher Jun 27, 2020
109adc0
Add mingw32 cross compile build
brarcher Jun 28, 2020
f1626d5
Merge pull request #278 from libcheck/mingw32
brarcher Jun 28, 2020
c992bcb
Merge branch 'master' into assertmsg
brarcher Jun 28, 2020
a88bcb0
Merge pull request #272 from jamesjer/assertmsg
brarcher Jun 28, 2020
9409a47
Add gcc/clang builds for osx
brarcher Jun 28, 2020
cbf4dcd
Merge pull request #279 from libcheck/actions-osx-gcc-clang
brarcher Jun 28, 2020
2493adc
Replace gnu_printf with printf in format __attribute__
brarcher Jun 28, 2020
4abf87c
Merge pull request #282 from libcheck/printf-attribute
brarcher Jun 28, 2020
17fdbf2
Fix strings passed to Check's asserts in tests
brarcher Jun 28, 2020
ab0c09b
Merge pull request #283 from libcheck/format-security-in-tests
brarcher Jun 28, 2020
8c6788e
Resolve warning in ptr macros with pointer to integer cast
brarcher Jun 28, 2020
aa2c55c
Merge pull request #284 from libcheck/ptr_macros_warning
brarcher Jun 29, 2020
b93a430
Add msys2 windows build
brarcher Jun 29, 2020
b7ce3ac
attempt to use full path in commands
brarcher Jun 29, 2020
c4c8cf6
Attempt to run all tests with make check
brarcher Jun 29, 2020
bcd0ee2
Cleanup MSYS2 build/test steps
brarcher Jun 29, 2020
604a5a5
Add cmake build steps for MSYS2
brarcher Jun 29, 2020
f8fd003
Print contents of dir after cmake
brarcher Jun 29, 2020
c7393f0
Remove MSYS2 CMake build
brarcher Jun 29, 2020
6a2cdd5
Create MSYS makefiles for MSYS2 cmake build
brarcher Jun 29, 2020
251c2bf
Use ctest to run test for MSYS2 CMake build
brarcher Jun 29, 2020
4bc5d53
Cleanup CMake MSYS2 build
brarcher Jun 29, 2020
e928387
Merge pull request #285 from libcheck/actions-msys2
brarcher Jun 29, 2020
17f84ea
Update NEWS
brarcher Jul 19, 2020
db3ef47
Merge pull request #287 from libcheck/news-1
brarcher Jul 19, 2020
ebc5e7c
Update for release
brarcher Jul 19, 2020
9843d48
Merge pull request #288 from libcheck/pre-0.15.1
brarcher Jul 22, 2020
f3670d5
Restore development header in NEWS
brarcher Jul 22, 2020
134bc1e
Merge pull request #292 from libcheck/news
brarcher Jul 24, 2020
82540c5
Add extra NULL argument at the end of fail* APIs
brarcher Aug 2, 2020
4ed1ae1
Merge pull request #298 from libcheck/fail-extra-null
brarcher Aug 3, 2020
4b24db8
Update NEWS with issue #298
brarcher Aug 8, 2020
9296c81
Update for release
brarcher Aug 8, 2020
7b61ef6
Skip installing texinfo for osx tests
brarcher Aug 8, 2020
6f6918b
Change brew install folder permissions
brarcher Aug 8, 2020
8059ebc
Apply chmod to all subfolders
brarcher Aug 8, 2020
69425fe
Use sudo chmod to change permission of folder
brarcher Aug 9, 2020
101de42
Merge pull request #300 from libcheck/actions
brarcher Aug 9, 2020
b2b2199
Merge branch 'master' into pre-0.15.2
brarcher Aug 9, 2020
11970a7
Merge pull request #299 from libcheck/pre-0.15.2
brarcher Aug 9, 2020
9798e5d
Windows: fix size prefix specifiers of printf()
vtorri Oct 11, 2020
5ed64b3
add documentation in libcompat.h
vtorri Oct 12, 2020
0039b97
Merge pull request #305 from vtorri/vtorri_zu
brarcher Oct 13, 2020
225f268
Testing formatted README.md
jflopezfernandez Oct 23, 2020
375f759
Center Repology distro list
jflopezfernandez Oct 23, 2020
e057665
Merge pull request #307 from jflopezfernandez/docs/format-github-readme
brarcher Oct 24, 2020
d71e2ca
Created suite_create.3 man page
jflopezfernandez Oct 25, 2020
17e37cf
Autotools build system configured to install man pages
jflopezfernandez Oct 25, 2020
0fd2cd6
Modified the man page header to include library version number
jflopezfernandez Oct 25, 2020
c86681a
Created library man page
jflopezfernandez Oct 25, 2020
c4bb0d6
Section 7 man pages now also installed by autotools
jflopezfernandez Oct 25, 2020
efc14cc
Fixed Autoconf configuration files list spacing
jflopezfernandez Oct 26, 2020
3ce622f
Man page installation via CMake now fully functional
jflopezfernandez Oct 26, 2020
65a0937
CMake automatic man page build date and version info complete
jflopezfernandez Oct 26, 2020
096f1e6
Automatic Autoconf Man Page Date/Versioning Complete
jflopezfernandez Oct 26, 2020
8c754fc
Fixed CMake man page installation bug
jflopezfernandez Oct 26, 2020
d0ffceb
Removed Timestamps from Project Configuration Process
jflopezfernandez Oct 31, 2020
5a29d49
Merge pull request #310 from jflopezfernandez/docs/man-pages
brarcher Oct 31, 2020
ea4ecd2
Fixed wrong function replacement
jflopezfernandez Nov 1, 2020
0edf859
Merge pull request #313 from jflopezfernandez/bugfix/wrong-function-r…
brarcher Nov 1, 2020
bc70690
Created GitHub Bug Report Issue Template
jflopezfernandez Nov 2, 2020
b6b3b82
Created GitHub Issues Configuration File
jflopezfernandez Nov 2, 2020
aaf1c24
Removed User Mailing List From the Issues Template
jflopezfernandez Nov 3, 2020
a2ca02c
Merge pull request #315 from jflopezfernandez/docs/create-community-f…
brarcher Nov 4, 2020
843862b
docs: fix simple typo, inproperly -> improperly
timgates42 Dec 13, 2020
1465d32
Allow use of deprecated add-path
brarcher Dec 13, 2020
a6e995e
Merge pull request #318 from libcheck/add-path-1
brarcher Dec 13, 2020
e399b60
Merge branch 'master' into bugfix_typo_improperly
brarcher Dec 13, 2020
9154cf2
Merge pull request #317 from timgates42/bugfix_typo_improperly
brarcher Dec 14, 2020
97e7274
check_mem_leaks: integrate check_mem_leaks into CMake
hvarga Dec 26, 2020
60a23ec
Merge pull request #319 from hvarga/cmake-integrate-check_mem_leaks
brarcher Jan 1, 2021
b3e8cb1
Correct misspelling
cgzones Apr 14, 2020
4fbe702
Adjust test suite for 106-bit long double precision
cgzones Jan 18, 2021
7f2868c
Update how casks are installed for osx tests
brarcher Jan 27, 2021
2f3ffd7
Merge pull request #323 from libcheck/osx-tests
brarcher Jan 27, 2021
6cc7e01
Merge branch 'master' into ppc
brarcher Jan 27, 2021
90db730
Merge pull request #322 from cgzones/ppc
brarcher Jan 28, 2021
7e48d2e
Drop the remaining cvsignore files
whot Mar 18, 2021
a6de6b0
Fix pkgconfig file's libdir value
mattst88 Mar 10, 2021
14fb6c3
Ignore scan-build results for snprintf replacement
brarcher Mar 19, 2021
49c41ef
Merge pull request #328 from libcheck/brarcher-patch-1
brarcher Mar 20, 2021
1603de5
Merge branch 'master' into wip/remove-cvsignore
brarcher Mar 20, 2021
e877cbf
Merge pull request #327 from whot/wip/remove-cvsignore
brarcher Mar 20, 2021
991c45b
Merge branch 'master' into fix-libdir
brarcher Mar 20, 2021
9e714b7
Merge pull request #326 from mattst88/fix-libdir
brarcher Mar 20, 2021
938c538
Remove docs building test for OSX
brarcher Mar 20, 2021
9ae888a
Merge pull request #330 from libcheck/brarcher-patch-1
brarcher Mar 20, 2021
8477ac1
Update CMake required from 3.9 to 3.13
mikkoi Sep 19, 2021
6f3aedd
Inform compiler (MinGW) that format strings to use are GNU/c99 style,…
bradh352 Oct 18, 2021
a040522
Merge pull request #338 from mikkoi/raise-cmake-required-to-313
brarcher Oct 21, 2021
3d2cf06
Merge branch 'master' into master
brarcher Oct 22, 2021
455005d
Merge pull request #339 from bradh352/master
brarcher Oct 22, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
name: Bug Report
about: There are no bugs here. But just in case...

---
# Bug Report
Thank you for filing a bug report! The more information you
can give us about your development environment, toolchain,
actions leading up to the bug, or any other contextual
information, the faster we'll be able to verify and diagnose
what went wrong.

At a minimun, please be sure to include the library version
you were working with. If you were trying to compile it from
source, please be sure to specify the compiler, compiler
version, operating system, operating system version, the
build system you used to generate the project, and whether
you were building from a source distribution or from version
control.

If you have no idea what any or all of the above terms mean,
you are always welcome to submit a bug report anyways, but
please remember the Fundamental Theorem of Bug Report
Submissions:

> The amount of information in a bug report is directly
proportional to its resolution speed.

## Checklist
Please do your best to include the following items with your
bug report.

### The Bare Minimum
Remember that this is the **minimum** required information.
More is always more helpful.

- [ ] [libcheck](https://github.com/libcheck/check) version
- [ ] Operating system
- [ ] Compiler

## Additional Information
Please be sure to include any additional information you
think may be helpful in helping us diagnose, understand, or
replicate the problem.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: true
210 changes: 210 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,210 @@
name: linux

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build_linux_autotools_default_args:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install doc packages
run: sudo apt-get install -y texlive texinfo texi2html doxygen
- name: create configure
run: autoreconf -i
- name: configure default
run: ./configure
- name: make
run: make
- name: make check
run: make check
- name: make install
run: sudo make install

build_linux_autotools_other_args:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install doc packages
run: sudo apt-get install -y texlive texinfo texi2html doxygen
- name: create configure
run: autoreconf -i
- name: configure default
run: ./configure --disable-fork --disable-subunit --enable-snprintf-replacement --enable-timer-replacement
- name: make
run: make
- name: make check
run: make check
- name: make install
run: sudo make install

build_linux_autotools_gcc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: create configure
run: autoreconf -i
- name: configure gcc
run: ./configure CC=gcc --enable-snprintf-replacement --enable-timer-replacement --disable-build-docs --disable-timeout-tests
- name: make
run: make
- name: make check
run: make check

build_linux_autotools_clang:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: create configure
run: autoreconf -i
- name: configure clang
run: ./configure CC=clang --enable-snprintf-replacement --enable-timer-replacement --disable-build-docs --disable-timeout-tests
- name: make
run: make

build_linux_autotools_crosscompile_mingw32:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install doc packages
run: sudo apt-get install -y gcc-mingw-w64
- name: create configure
run: autoreconf -i
- name: configure clang
run: ./configure --disable-build-docs --host=x86_64-w64-mingw32 --disable-static --disable-subunit
- name: make
run: make


build_linux_autotools_prereleasecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install doc packages
run: sudo apt-get install -y texlive texinfo texi2html doxygen
- name: create configure
run: autoreconf -i
- name: configure default
run: ./configure
- name: make prereleasecheck
run: make prereleasecheck

build_linux_autotools_docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install doc packages
run: sudo apt-get install -y texlive texinfo texi2html doxygen
- name: create configure
run: autoreconf -i
- name: configure default
run: ./configure
- name: make docs
run: make doc/check_html
- name: make doxygen
run: make doc/doxygen

build_linux_autotools_example:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install doc packages
run: sudo apt-get install -y texlive texinfo texi2html doxygen
- name: create configure
run: autoreconf -i
- name: configure default
run: ./configure
- name: make
run: make
- name: make install
run: sudo make install
- name: create configure example
working-directory: doc/example
run: autoreconf -i
- name: configure example
working-directory: doc/example
run: ./configure
- name: build example
working-directory: doc/example
run: make
- name: test example
working-directory: doc/example
run: make check

build_linux_cmake:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: cmake cversion
run: cmake --version
- name: create configs
run: cmake .
- name: make
run: make
- name: unit tests
run: ctest -V
- name: make install
run: sudo make install

build_linux_scanbuild:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install scan-build packages
run: sudo apt-get install -y clang-tools
- name: create configure
run: autoreconf -i
- name: configure
run: scan-build ./configure --enable-timer-replacement --disable-build-docs
- name: make
run: scan-build -o clang make
- name: check for issues
run: |
if [ -n "$(find clang -type f)" ]; then
echo "scan-build found potential issues"
find clang -type f -print -exec cat \{} \;
exit 1
fi

build_linux_cmake_project_usage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: run test
run: |
cmake --version || exit 1
project_dir="project_cmake"
install_dir="${PWD}/install_cmake"
build_dir="${PWD}/build_cmake"

# For FetchContent we copy everything to a subdir.
# Otherwise the copying would be recursive and forever.
echo "setup project dir"
mkdir "$project_dir" || exit 1
find . -maxdepth 1 -print | grep -v -E "^(\.|\./${project_dir})\$" | grep -v '^\./\.git.*$' | xargs cp -R -t "$project_dir" || exit 1

# For find_package we need the project built and installed
echo "build and install"
mkdir "$build_dir" && cd "$build_dir" || exit 1
cmake -D BUILD_TESTING=OFF -D CMAKE_INSTALL_PREFIX="${install_dir}" ../project_cmake || exit 1
make && make install || exit 1
cd .. || exit 1

echo "test fetch content"
cp -R tests/cmake_project_usage_test . || exit 1
proj_dir="$PWD/${project_dir}"
build_dir="build_fetch_content"
mkdir $build_dir && cd $build_dir || exit 1
INCLUDE_CHECK_WITH='FetchContent' INCLUDE_CHECK_FROM="file://${proj_dir}" cmake -D CMAKE_BUILD_TYPE=Debug ../cmake_project_usage_test || exit 1
make && src/tests.test || exit 1
cd .. || exit 1

echo "test find package"
build_dir='build_find_package_config'
mkdir $build_dir && cd $build_dir || exit 1
INCLUDE_CHECK_WITH='find_package_config' Check_ROOT="${install_dir}" cmake -D CMAKE_BUILD_TYPE=Debug ../cmake_project_usage_test || exit 1
make && src/tests.test || exit 1
cd .. || exit 1
Loading