Commit Graph

14 Commits

Author SHA1 Message Date
Sean Robinson
a832ac3496 Analyze only argparse header in PR clang-tidy action
Signed-off-by: Sean Robinson <sean.robinson@scottsdalecc.edu>
2022-11-29 10:40:39 -07:00
Sean Robinson
784aa7916e Use C++17 standard with clang-tidy in PR checks
Needed for std::string_view.

Signed-off-by: Sean Robinson <sean.robinson@scottsdalecc.edu>
2022-11-04 10:19:11 -07:00
Sean Robinson
3fce18503b Tell clang-tidy where to find argparse.hpp in PR action
Resolves the following error during stage one of clang-tidy-pr-comments:

  "error: 'argparse/argparse.hpp' file not found [clang-diagnostic-error]"

Closes #219

Signed-off-by: Sean Robinson <sean.robinson@scottsdalecc.edu>
2022-10-11 10:13:33 -07:00
Sean Robinson
99057b09a1 Add clang-tidy analysis of pull requests
This action runs clang-tidy with results saved to a file which is then
parsed in stage two to post code comments.  This multistage process lets
us post PR comments on code from forks.

Signed-off-by: Sean Robinson <sean.robinson@scottsdalecc.edu>
2022-10-05 15:22:44 -07:00
Sean Robinson
d8c10a9c79 Add cmake_opts value to allow specifying an alternate toolchain
The new "windows-latest-clang" target does not honor the CXX environment
variable and uses the default MSVC compiler.  This tries to tell cmake to
handle things via a toolset name.

Signed-off-by: Sean Robinson <sean.robinson@scottsdalecc.edu>
2022-08-11 13:20:43 -07:00
Sean Robinson
8a90914a2a Add Windows 2022 Clang-cl runner
Several people using clang-cl on Windows are reporting build errors after
a upgrading to v13.  This tries to replicate the error to allow testing
a fix.

Signed-off-by: Sean Robinson <sean.robinson@scottsdalecc.edu>
2022-08-11 12:00:31 -07:00
Sean Robinson
566d1df20e Add MacOS 12 CI runner
This expands test environment coverage to two MacOS versions.

Signed-off-by: Sean Robinson <sean.robinson@scottsdalecc.edu>
2022-08-04 11:37:02 -07:00
Sean Robinson
0ad03de428 Reenable Windows 2019 MSVC runner
windows-latest changed to Windows 2022 during first quarter of 2022.  This
adds windows-2019 to CI test matrix do that we can catch changes that break
the older configuration.

Signed-off-by: Sean Robinson <sean.robinson@scottsdalecc.edu>
2022-08-04 11:35:37 -07:00
Sean Robinson
eaa8214962 Remove StaticAnalysis Action
I am seeing too many errors due to bad tool configuration, not from
problems in project code.  So, disable SA until I can make it work more
reliably.

Signed-off-by: Sean Robinson <sean.robinson@scottsdalecc.edu>
2022-03-28 13:03:05 -07:00
Sean Robinson
97204363b5 Refactor configuration for StaticAnalysis
Upstream StaticAnalysis looks to be changing for more flexibility with
source files to process.  While these changes may eventually benefit
argparse, the public interfaces are in flux and we need a stable tool.
argparse also needs a SA change which is not yet upstream.

Trying to run clang-tidy via StaticAnalysis on a single file in a
directory with many source file is not easy, so move the analysis kernel
to a location (i.e. tools) where it is the only C++ source file.

Another benefit is cppcheck no longer needs to be told to ignore the test
sources.

Signed-off-by: Sean Robinson <sean.robinson@scottsdalecc.edu>
2022-02-07 11:51:22 -07:00
Sean Robinson
736099ef3f Remove Windows Server 2016 from test matrix
The Windows Server 2016 test environment is scheduled for removal on
March 15, 2022.

Signed-off-by: Sean Robinson <sean.robinson@scottsdalecc.edu>
2022-01-11 08:33:41 -07:00
Sean Robinson
6246a9df0e Change Static Analysis trigger event to pull_request_target
The GH security model restricts comment posting from PR actions.
StaticAnalysis has added support for pull_request_target to mitigate
risks while still allowing comments by the bot.

Signed-off-by: Sean Robinson <sean.robinson@scottsdalecc.edu>
2022-01-11 06:48:00 -07:00
Sean Robinson
8d8282bac3 Add Static Analysis action to run on Pull Request
Unit test source files are not currently checked.  Hopefully, these can
be added so that all source files in a pull request are verified.

Signed-off-by: Sean Robinson <sean.robinson@scottsdalecc.edu>
2021-11-10 13:54:29 -07:00
Sean Robinson
335e6272bd Add GitHub Action to run tests on pull request
Run tests on Apple macOS, MS Windows, and Ubuntu Linux hosts.

macOS-hosted tests are only run on latest, which is currently macOS 10.15.
GH will eventually update latest to macOS 11 and we can look at expanding
to two versions of macOS.

Windows-hosted tests run on Windows Server 2016 and latest.

Ubuntu-hosted tests only run on latest because g++ fails to build argparse
on ubuntu-18.04 (GCC 8) since charconv was added in commit ea2f16d2.  But,
Ubuntu-hosted tests do run with g++ and clang++.

Closes #128.

Signed-off-by: Sean Robinson <sean.robinson@scottsdalecc.edu>
2021-09-13 14:17:19 -07:00