Commit Graph

67 Commits

Author SHA1 Message Date
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
Hamish Coleman
06cc8ae64b Apply tags fix from https://github.com/actions/checkout/issues/290 2021-11-01 19:15:23 +00:00
Hamish Coleman
e538e55ed7 The cmake github action is clearly not just for linux 2021-11-01 19:15:23 +00:00
Hamish Coleman
9f7ea89229 Remove debugging outputs 2021-10-31 20:28:30 +00:00
Hamish Coleman
5055259171 Output correct debug data... 2021-10-31 20:16:06 +00:00
Hamish Coleman
02f341df87 Add a debugging job to show the get tagtype data quicker in the workflow 2021-10-31 20:14:22 +00:00
Hamish Coleman
3c3a848dc2 Re-add much of the debug output 2021-10-31 19:51:22 +00:00
Hamish Coleman
5b5fe587ae Attempt to fix github tags in each job
See https://github.com/actions/checkout/issues/290 for some discussion.
2021-10-31 19:37:11 +00:00
Hamish Coleman
f2f49111b7 Add reference to a ticket for this problem 2021-10-31 19:28:42 +00:00
Hamish Coleman
88bd8e566f Fix clone command, removing the half removed old fetch-based command 2021-10-31 19:16:47 +00:00
Hamish Coleman
d8fa2ef9da Return the tags check to the releases, use our own clone and remove all the debug output 2021-10-31 19:04:35 +00:00
Hamish Coleman
11512fe1c8 Fix spelling 2021-10-31 19:04:35 +00:00
Hamish Coleman
a4f5b18308 Of course, nobody has a standard git repo layout, so need to jump more hoops 2021-10-31 19:04:35 +00:00
Hamish Coleman
d9d524a8d8 Add more debug data output 2021-10-31 19:04:35 +00:00
Hamish Coleman
e709997b3c Abandon using the github checkout action, it is clearly at fault 2021-10-31 19:04:35 +00:00
Hamish Coleman
23ef8e4bfe Adjust pull command to pull.rebase=false 2021-10-31 19:04:35 +00:00
Hamish Coleman
3e2be20614 Try returning to the 'normal' command, after force pulling the correct repo data 2021-10-31 19:04:35 +00:00
Hamish Coleman
6395aa4fbc Getting closer, it clearly showed the upstream had a different view than this checkout 2021-10-31 19:04:35 +00:00
Hamish Coleman
71021abd97 Try a different way to fetch the right tag data 2021-10-31 19:04:35 +00:00
Hamish Coleman
9b081805f5 Add more tag debugging output 2021-10-31 19:04:35 +00:00
Hamish Coleman
55c063513d Shorten line to address yamllint warning 2021-10-31 19:04:35 +00:00
Hamish Coleman
1adbdc9a00 Avoid exitcode triggering job failure 2021-10-31 19:04:35 +00:00
Hamish Coleman
e63b0f3c53 Attempt to work around strage git behaviour in github 2021-10-31 19:04:35 +00:00
Hamish Coleman
3371a50d5a Add more debug data, still trying to work out why github doesnt think tags are tags 2021-10-31 19:04:35 +00:00
Hamish Coleman
0a24c40e25 Tags dont work properly with a thin clone 2021-10-31 19:04:35 +00:00
Hamish Coleman
e5b373dd10 With the better release gating, we dont need to check if the job can run (also allows more debug info output) 2021-10-31 19:04:35 +00:00
Hamish Coleman
5538a55090 Add some debug info to the release automation 2021-10-31 19:04:35 +00:00
Hamish Coleman
78889f8d98 Fix - if we want to run git commands, we need a git repo clone 2021-10-31 19:04:35 +00:00
Hamish Coleman
0929185d04 Fix tagtype logic, shell quotes need to be correct for shell vars 2021-10-31 19:04:35 +00:00
Hamish Coleman
e1845136a3 Fix workflow syntax - of course keys cannot be defined twice 2021-10-31 11:49:04 +00:00
Hamish Coleman
65062ca594 Actions set-output is only scoped within the same job id 2021-10-31 11:47:08 +00:00
Hamish Coleman
71521b81d8 Only trigger release process on annotated tags
Annotated tags are meant for releases while lightweight tags are meant
for private or temporary object labels.

For this reason, we should not trigger the automatic release actions
unless we have an annotated tag.
2021-10-31 11:36:29 +00:00