Peter Johnson
aa9d7f1cdc
[wpiutil] Import foonathan memory ( #4306 )
2022-09-02 20:32:21 -07:00
Peter Johnson
c8bd6fc5b4
[ci] Fix comment-command (take 2) ( #4395 )
2022-09-02 08:51:07 -07:00
Peter Johnson
fed68b83b4
[ci] Fix comment-command action not running runners ( #4393 )
...
Triggering runners from a push from a runner requires use of a PAT.
https://stackoverflow.com/questions/67550727/push-event-doesnt-trigger-workflow-on-push-paths-github-actions
2022-09-02 08:16:31 -07:00
Tyler Veness
539070820d
[ci] Enable asan for wpinet and wpiutil ( #4369 )
2022-08-21 14:59:07 -07:00
Tyler Veness
340465c929
[ci] Upgrade to clang-format and clang-tidy 14 (NFC) ( #4347 )
2022-08-16 15:25:04 -07:00
Tyler Veness
d25af48797
[ci] Make upstream_utils CI fail on untracked files ( #4339 )
...
This catches issues like update scripts putting new files in a different
directory from the old ones.
2022-07-24 19:34:16 -07:00
Thad House
aa221597bc
[build] Add M1 builds, change arm name, update to 2023 deps ( #4315 )
2022-06-20 12:28:46 -06:00
Tyler Veness
579a8ee229
[ci] Use one worker for Windows release Gradle build ( #4318 )
...
It was running out of heap space.
2022-06-18 22:45:12 -07:00
Connor Worley
a99c11c14c
[wpimath] Replace UKF implementation with square root form ( #4168 )
...
Co-authored-by: Tyler Veness <calcmogul@gmail.com >
2022-06-08 22:19:01 -07:00
Thad House
17752f1337
[ci] Split debug and release Windows builds ( #4277 )
...
Co-authored-by: Tyler Veness <calcmogul@gmail.com >
2022-06-06 17:25:02 -07:00
Peter Johnson
abc605c9c9
[ci] Update workflows to 20.04 base image ( #4271 )
2022-05-27 23:33:33 -07:00
Tyler Veness
db2e1d170e
[upstream_utils] Document how to update thirdparty libraries ( #4253 )
...
Also, add a CI job to ensure the sources in the repo are consistent with
the update scripts.
2022-05-26 09:02:32 -07:00
Austin Shalit
2ae4adf2d7
[ci] Add wpiformat command to PRs ( #4223 )
2022-05-11 22:06:11 -07:00
Peter Johnson
d673ead481
[wpinet] Move network portions of wpiutil into new wpinet library ( #4077 )
2022-05-07 10:54:14 -07:00
Austin Shalit
03230fc842
[build,ci] Enable artifactory build cache ( #4200 )
2022-04-30 20:27:23 -07:00
Tyler Veness
fbe761f7f6
[build] Increase Gradle JVM heap size ( #4172 )
...
wpimath artifact publishing was running out of heap
2022-04-24 23:13:57 -07:00
Peter Johnson
aaa69f6717
[ci] Remove 32-bit Windows builds ( #4078 )
2022-04-24 07:18:49 -07:00
Tyler Veness
bd80e220b9
[ci] Upgrade CMake actions ( #4161 )
2022-04-12 19:00:00 -07:00
Austin Shalit
d27ed3722b
[ci] Set actions workflow concurrency ( #4060 )
...
This sets the workflow concurrency to 1 for all workflows. For PRs this means if you push an additional commit older jobs will be cancelled.
The documentation workflow already only runs on tags or merges to main. For this, we cancel previous runs if they are to the same destination (tag or main) but still prevent 2 jobs from running at once if they are spawned from different refs.
2022-02-27 20:13:58 -08:00
Thad House
441f2ed9b0
[build] actions: use fixed image versions instead latest ( #3761 )
2021-12-09 12:12:59 -08:00
Tyler Veness
4647d09b50
[docs] Fix Doxygen warnings, add CI docs lint job ( #3639 )
...
The CI docs lint build is configured to fail on Doxygen warnings.
2021-10-14 18:09:38 -07:00
Tyler Veness
95dd20a151
[build] Enable spotbugs ( #3601 )
...
Benign spotbugs warnings were suppressed, and all others were fixed. Bug
descriptions are documented here:
https://spotbugs.readthedocs.io/en/stable/bugDescriptions.html
Co-authored-by: Austin Shalit <austinshalit@gmail.com >
2021-09-24 16:04:02 -07:00
Tyler Veness
54ca474dba
[ci] Enable asan and tsan in CI for tests that pass ( #3591 )
...
ctest's -E flag skips tests that match a regular expression.
2021-09-19 20:03:40 -07:00
Thad House
179fde3a7b
[build] Update to 2022 native utils and gradle 7 ( #3588 )
2021-09-19 17:59:14 -07:00
Tyler Veness
a7fb831035
[ci] clang-tidy: Generate compilation commands DB with Gradle ( #3585 )
2021-09-18 10:19:34 -07:00
Tyler Veness
8164b91dc4
[CI] Print CMake test output on failure ( #3583 )
2021-09-17 22:54:47 -07:00
Peter Johnson
263a248119
[wpimath] Use jinja for codegen ( #3574 )
...
While not really needed for wpimath, it will make more complex codegen
in the future significantly easier.
2021-09-17 00:10:29 -07:00
Tyler Veness
906bfc8464
[build] Add CMake build support for sanitizers ( #3576 )
...
* Address sanitizer uses -DCMAKE_BUILD_TYPE=Asan
* Thread sanitizer uses -DCMAKE_BUILD_TYPE=Tsan
* Undefined behavior sanitizer uses -DCMAKE_BUILD_TYPE=Ubsan
Only ubsan is enabled in CI for now because asan and tsan report
failures.
2021-09-16 18:48:41 -07:00
Tyler Veness
e109c42515
[build] Rename makeSim flag to forceGazebo to better describe what it does ( #3535 )
2021-09-05 17:40:54 -07:00
PJ Reiniger
57c8615af3
[build] Generate spotless patch on failure ( #3523 )
2021-08-20 23:18:10 -07:00
Tyler Veness
252b8c83bf
Remove Java formatting from build task in CI ( #3507 )
...
This saves time in CI spent performing the same source-level checks in
every build job. Checkstyle, PMD, and Spotless are now run once in the
"Lint and Format" job.
The -PskipPMD flag was replaced with a -PskipJavaFormat flag that
disables Checkstyle, PMD, and Spotless.
2021-08-07 20:39:14 -07:00
Tyler Veness
09666ff294
Shorten Gazebo CI build ( #3506 )
...
Only build the Gazebo simulation projects instead of all of WPILib.
2021-08-07 20:37:57 -07:00
Tyler Veness
16e096cf86
[build] Fix CMake Windows CI ( #3490 )
2021-07-26 07:28:52 -07:00
Austin Shalit
e7f9331e4b
[build] Update to Doxygen 1.9.1 ( #3008 )
2021-07-22 18:33:15 -07:00
Tyler Veness
5f5830b960
Upload wpiformat diff if one exists ( #3474 )
...
This means users will be able to apply it locally with "git apply".
2021-07-09 21:42:20 -05:00
Peter Johnson
b45572167d
[build] Change CI back to 18.04 docker images ( #3456 )
...
This reverts commit d068fb321f (#3420 ).
The 18.04 docker images now use GCC 8, which was the original reason for
updating. 20.04 uses a much more recent libc, so staying with 18.04
enables more Linux platforms to use the binaries.
2021-06-20 23:03:29 -07:00
Peter Johnson
9e1b7e0464
[build] Fix clang-tidy and clang-format ( #3429 )
...
Use the official ubuntu packages on 20.04; don't use ubuntu-latest.
2021-06-10 20:46:21 -07:00
Tyler Veness
a77c6ff3a2
[build] Upgrade clang-format and clang-tidy (NFC) ( #3422 )
2021-06-10 11:13:09 -07:00
Tyler Veness
8284075ee4
Run "Lint and Format" CI job on push as well as pull request ( #3412 )
...
This makes the formatter run when pushing to local forks before a pull
request is made.
This is not run on the main branch.
2021-06-08 23:22:40 -07:00
Peter Johnson
d068fb321f
[build] Upgrade CI to use 20.04 docker images ( #3420 )
2021-06-08 12:27:22 -07:00
Peter Johnson
c3a8bdc240
[build] Fix clang-tidy action ( #3246 )
...
Manually install python3.8, as actions/setup-python now needs Ubuntu 20.04.
2021-03-19 08:59:14 -07:00
Peter Johnson
8494a5761b
Rename default branch to main ( #3140 )
2021-01-30 13:46:56 -08:00
Prateek Machiraju
d6ed20c1e4
[build] Set macOS deployment target to 10.14 ( #3088 )
2021-01-14 21:20:38 -08:00
Austin Shalit
767ac1de10
[build] Use deploy key for doc publish ( #3048 )
...
This allows us to limit the scope of personal access tokens
2021-01-04 15:21:47 -08:00
Austin Shalit
d762215d13
[build] Add publish documentation script ( #3040 )
2021-01-04 13:59:19 -08:00
Prateek Machiraju
dfdd6b3891
[build] Increase Gradle heap size in Gazebo build ( #3028 )
...
Builds have been intermittently failing due to Gradle running out of memory.
2021-01-01 10:29:55 -08:00
Peter Johnson
f5e0fc3e9a
Finish clang-tidy cleanups ( #3003 )
...
* Add .clang-tidy configuration.
* A separate .clang-tidy is used for hal includes to suppress modernize-use-using
(as these are C headers).
* Add NOLINT where necessary for a clean run.
* Add clang-tidy job to lint-format workflow. This workflow is now only run on PRs.
To reduce runtime, clang-tidy is only run on files changed in the PR.
Two wpilibc changes; both are unlikely to break user code:
* BuiltInAccelerometer: Make SetRange() final
* Counter: Make SetMaxPeriod() final
After these cleanups, the only file that does not run cleanly is
cscore_raw_cv.h due to it not being standalone.
2021-01-01 10:27:49 -08:00
Austin Shalit
26d0004fe1
[build] Split Actions into different yml files ( #3025 )
2020-12-31 20:33:39 -08:00
Austin Shalit
65b2359b27
[build] Add spotless for other files ( #3007 )
...
Adds spotless formatting for Gradle, xml, md, and gitignore files.
yml linting is not performed as it requires a dependency on npm.
2020-12-30 16:17:20 -08:00
Austin Shalit
78b542737a
[build] Add Gazebo build to Actions CI ( #3004 )
2020-12-30 11:38:49 -08:00