Commit Graph

98 Commits

Author SHA1 Message Date
Hamish Coleman
a0c2af5f78 Remove define that no longer does anything 2023-06-25 22:40:46 +08:00
Hamish Coleman
d39f5c7892 Disable running full tests on BSD builds - they are flappy 2023-06-25 22:19:36 +08:00
Hamish Coleman
42a716ae7b Actually test freebsd 2023-06-25 21:08:36 +08:00
Hamish Coleman
a1bef636de Partially Revert "Add rules to run autogen/configure and use them in some of the simpler CI builds"
This reverts commit 87c20d750e.
2023-06-25 17:56:09 +08:00
Hamish Coleman
87c20d750e Add rules to run autogen/configure and use them in some of the simpler CI builds 2023-06-25 02:07:49 +08:00
Hamish Coleman
1581b74027 Update everything to reference the simpler tool autodetection 2023-06-25 02:07:49 +08:00
Hamish Coleman
0545a54b13 Allow windres to run when cross compiling 2023-06-25 02:07:49 +08:00
Hamish Coleman
3e47641630 Actually test the zstd support before editing the transform_zstd 2023-06-16 09:56:53 +01:00
Hamish Coleman
edaebf3b46 Ensure that data from failed tests is not overwritten by other jobs 2023-06-13 21:17:09 +01:00
Hamish Coleman
6f7da048fb Add one more missing package 2023-05-06 08:48:04 +08:00
Hamish Coleman
f3a2344353 Add a CI test build with lots of options turned on 2023-05-06 08:48:04 +08:00
Hamish Coleman
6b4a9c4387 Remove duplicated build targets 2023-04-30 20:45:55 -05:00
Hamish Coleman
4e2b9e0a91 First, build the project - allowing build errors to easily show up 2023-04-30 18:53:30 -05:00
Hamish Coleman
39b9c6b1c0 Enable tests on newer github images 2023-04-19 17:06:45 +08:00
Hamish Coleman
3cef9949c2 Remove the non-maintained CMake build system.
It is difficult to maintain one build system, let alone two - especially
if one build system is known to be better maintained and the other build
system continues to be used - with bug and feature requests raised
against it.

The maintainers are aware that there are people using the CMake system,
but believe that the extra maintainability of only having one build
system, combined with the knowledge that the current CI system
demonstrates that all supported architectures are working with the
Makefiles make the use of these Makefiles a more sustainable direction.
2023-04-19 17:06:45 +08:00
Hamish Coleman
9618512c8f Give up and cache the entire openwrt buildchain 2023-01-30 20:31:13 +00:00
Hamish Coleman
8e172d94ea Nothing needs to dep on the smoketest 2023-01-30 20:31:13 +00:00
Hamish Coleman
0867fd1a7c One more try to avoid building all the kmod packages 2023-01-30 20:31:13 +00:00
Hamish Coleman
c3f5d69020 In fact, we can start more builds sooner 2023-01-30 20:31:13 +00:00
Hamish Coleman
4b9397a1b0 Fix the cache key. Also adjust the deps - the openwrt build is the longest, so start it sooner 2023-01-30 20:31:13 +00:00
Hamish Coleman
731be7e257 Use caching to try to speed up openwrt builds. Build openwrt statically 2023-01-30 20:31:13 +00:00
Hamish Coleman
c824c5d2cd Name the openwrt builds the same as the expected package name 2023-01-30 20:31:13 +00:00
Hamish Coleman
780d1edfb8 Add a amd64 OpenWrt build for more testing 2023-01-30 20:31:13 +00:00
Hamish Coleman
40f4b04bb2 Add quicker OpenWrt build to regular builds.
Use the upstream build environment to speed up the compiling of OpenWrt
ipk packages.  (And minor doc updates after running this.
2023-01-30 20:31:13 +00:00
Hamish Coleman
99ae88c85b Address github linter concerns in openwrt CI 2023-01-30 20:31:13 +00:00
Hamish Coleman
914c450641 Address more github workflow lint concerns 2023-01-27 00:23:52 +00:00
Hamish Coleman
b104f4a72d Address lint concern 2023-01-27 00:21:14 +00:00
Hamish Coleman
fadafabd66 Address github workflow lint concerns 2023-01-27 00:12:04 +00:00
Hamish Coleman
b1d2396cb9 Disable faling test - unreproducible locally, appears to be a github issue 2023-01-27 00:08:32 +00:00
Hamish Coleman
b9cf4cbe73 Provide ability to investigate build errors
Upload the test results so they can be examined outside of the CI system
2023-01-26 23:54:59 +00:00
Hamish Coleman
a2a8c3d4ee Add some analysis tools 2022-05-08 15:46:41 +01:00
Logan oos Even
0f15271736
removed abandoned Windows 2016 runner (#971) 2022-03-20 14:15:35 +01:00
Hamish Coleman
91d325b73a actions/upload-artifact@v2 with path does not take a list 2022-02-05 20:06:31 +00:00
Hamish Coleman
662e17afd6 Keep the tests output on failure for a cmake build too 2022-02-05 20:06:31 +00:00
Hamish Coleman
75a205ec69 Only need to keep the tests output if there has been a failure 2022-02-05 20:06:31 +00:00
Hamish Coleman
9cc04d6b28 Limit code coverage to unit tests - any integration tests should not be considered as coverage 2022-02-05 20:06:31 +00:00
Hamish Coleman
028d6f9b07
Harmonise configuration defaults (#937)
* Ensure all options start off for cmake too

* Attempt to make the build time config logic in the cmake process match the makefile process

* Add a simple muscle memory helper for cmake

* Ask them what they are smoking, then tell them to put it out

* Avoid occasional stale package cache errors
2022-01-25 20:11:02 +00:00
Hamish Coleman
4f568b03c1
Autoconf simplification (#927)
* Convert zstd feature to default disable

* All autoconf test use one standard template

To simplify the testing, cross-compilation and repeatable build process,
no configure options are automatically probed for - they all default to
off and are all using the same template.

The --with-x options should be deprecated and replaced with --enable-x
because there is no syntax checking for --with options in autoconf.

There are still some differences between the config options, but this
should provide a starting point.

* Remove unused code from the autoconf

* Remove warnings from default build

* Avoid calling port mapping functions if none are enabled

* Start with all builds in neutral config

* Add more missing code guards

* Adjust code guard location to placate cmake
2022-01-10 19:58:15 +00:00
Logan oos Even
5d0c395194
enabled cmake runner on pull request event (#915) 2021-12-25 18:05:31 +01:00
Logan oos Even
310c6b900e
fixed indention 2021-12-24 10:22:18 +01:00
Logan oos Even
87f0a7edc4
added "submodules: true" to CMake runner 2021-12-23 16:19:49 +01:00
Logan oos Even
7f01cfaed0
Revert "made github cmake runner fetch submodules (#906)" (#907)
This reverts commit 68cd16c696.
2021-12-23 15:02:23 +01:00
Logan oos Even
68cd16c696
made github cmake runner fetch submodules (#906) 2021-12-23 14:54:06 +01:00
Hamish Coleman
a1facf0f3f
Update Openwrt process (#900)
* First attempt at a openwrt CI

* Fix action - helps if I dont forget the syntax half way through writing it

* Try building /this/ branch for the openwrt CI

* Try a build with openssl configured

* Dont enable the n2n package until we have built the environment - makes errors easier to see and clearly related to n2n

* Attempt to speed up the openwrt build

* Upload any created ipkg packages

* Dont test with openssl for the moment

* Attempt to speed up openwrt build using a cache of the build dir

* The make defconfig run turns all the built binaries stale, so stop caching them.  Also use a real ref for the cache key

* Minor text name changes

* Address yamllint concerns

* Attempt to simplify and document missing parts of the openwrt makefile

* Attempt to fix mystery openwrt make error

* Rename build job name

* Avoid nested checkouts, use two separate dirs for the two checkouts in this build

* Move the n2n checkout to earler, allowing us to skip one defconfig run

* We are going to need working tags from the n2n repo, so ensure we unbreak the github checkout braindamage

* Calculate and save the n2n version string

* Prepare the way to pass the correct external vars into the openwrt build

* Hook calculated build variables into the openwrt package definition

* Update artifacts source to match moved checkout dir

* Pass env vars in to the make

* Allow version script to be influenced by external vars

* It will help if I use the same variable names everywhere

* Add more version variable calculation overrides

* Configure openwrt to use the external git checkout instead of their create-tar-then-extract dance

* Using the correct syntax for ifdef will help significantly

* Use as many jobs as we have cpus

* As the USE_SOURCE_DIR option allows us to use a full git checkout, we do not need to hack the version.sh to allow overrides

* Ensure scripts/version.sh works from anywhere

* Remove unneeded variables

* Update openwrt build documentation to match the new build process

* Catch failure to cd as per shellcheck suggestion

* Limit lengthy openwrt builds to manual triggers or on a release

* Also run on specially named branches

* Break list into separate lines for easier future editing
2021-11-18 21:28:50 +00:00
Hamish Coleman
8504b7c268 Minor lint cleanup 2021-11-02 09:29:01 +00:00
Hamish Coleman
c0cfe93726 How many commits to fetch? Github says 'meh'
The right number of commits to fetch is enough to be able to create
a `git describe` result - basically back until the most recent parent
annotated tag.

However, the github action/checkout@v2 only allows a simple number,
which is basically the answer to "how long is a piece of string"
2021-11-01 19:15:23 +00:00
Hamish Coleman
6c3ccadde1 Try to make debug workflow demand triggerable
The docs claim that by adding the right `on:` event, the job can be
manually triggered from the github UI.

https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows#workflow_dispatch

Tests show that it doesnt work, but I can leave it here for reference.
2021-11-01 19:15:23 +00:00
Hamish Coleman
dfc1c85bce Get the repo history 2021-11-01 19:15:23 +00:00
Hamish Coleman
d22f74bf69 Add a build job to dump details about the repository 2021-11-01 19:15:23 +00:00
Hamish Coleman
142f23bd50 Apply tags fix from https://github.com/actions/checkout/issues/290 to all checkouts 2021-11-01 19:15:23 +00:00