Commit Graph

29 Commits

Author SHA1 Message Date
Hans Ulrich Niedermann
4dd0f3a322 ci: Add CI build for macOS
Note that this skips the 'make distcheck' stage due to two reasons:

  * GitHub considers macOS cpu cycles to be very expensive, and
    distcheck basically doubles the build cycles
  * For reasons yet unknown, 'make distcheck' on macOS fails with
    the compiler being unable to create an executable.
2022-11-14 10:36:23 +01:00
Hans Ulrich Niedermann
b361f8f719 ci: Add comment pointing to actionlint
If Github does not accept a workflow YAML file as intended,
actionlint is a very useful tool to help find out what is
wrong in the YAML file.
2022-11-13 17:26:33 +01:00
Hans Ulrich Niedermann
70e5b60e77 ci: Rename CI build 2022-11-13 17:26:33 +01:00
Hans Ulrich Niedermann
ee895a1ff3 ci: Prepare for OS specific build flags 2022-11-13 17:26:31 +01:00
Hans Ulrich Niedermann
2154998cb9 ci: Update step names 2022-11-13 17:24:33 +01:00
Hans Ulrich Niedermann
090d8a10da ci: Prepare for portable concurrent make 2022-11-13 17:24:31 +01:00
Hans Ulrich Niedermann
000d5b9408 ci: Add global LC_ALL and COMMON_CONFIGURE_FLAGS 2022-11-13 17:23:04 +01:00
Hans Ulrich Niedermann
6ce8e19649 ci: Update indentation and quote names 2022-11-11 14:31:36 +01:00
Hans Ulrich Niedermann
bc8eb3b684 gh workflow: Update to actions/checkout@v3 2022-11-09 19:49:20 +01:00
Hans Ulrich Niedermann
8a81970cf8 gh workflow: remove apt-get dist-upgrade
We probably do not need to dist-upgrade (or upgrade), and dist-upgrade
can take a long time on the github runners.

We only had this while trying to work out how to work around the
libgd-dev dependency issue, so we can remove the dist-upgrade step.
2022-09-04 19:13:57 +02:00
Hans Ulrich Niedermann
ff5a43e0a7 gh workflow: work around libgd-dev dependency problem
Work around libgd-dev dependency issue apparently caused by a 3rd party
repository with PHP and nginx and related stuff like libgd.

So we remove nginx and libgd3 to get rid of the relevant 3rd party
packages which pull in their libgd, and only then install libgd-dev
which then comes from Ubuntu proper and works.

As we need neither nginx nor php, this should work for libgphoto2.

This appears to be a reoccuring problem on github runners, so keeping
this workaround in place looks like the way to go for the future.

See also https://github.com/actions/runner-images/issues/6153
and recursively follow the linked issues and comments for more
information.
2022-09-04 19:02:49 +02:00
Hans Ulrich Niedermann
d725bbab44 gh workflow: actually upgrade the system 2022-09-04 00:43:20 +02:00
Hans Ulrich Niedermann
85f2b9fdf5 gh CI workflow: Add "make installcheck" target 2022-05-27 21:46:59 +02:00
Hans Ulrich Niedermann
d1650f14bc gh workflow: Use parallel make for builds
Use parallel make for builds. We use the GNU coreutils'
"nproc" utility to determine the number of cores available
for us to use. We then tell make to launch up to that number
of processes (-j$(nproc)) in parallel, but only if the system
load is below $(nproc) (-l$(nproc)).

That should make reasonably good use of however many cores github
makes available to us, while not overloading the build server
or the build server VM.
2022-05-19 16:59:58 +02:00
Hans Ulrich Niedermann
ea1044dcd6 gh workflow: print nproc to find out whether make -jNN makes sense 2022-05-14 00:16:11 +02:00
Hans Ulrich Niedermann
6d7ed0ea21 Work around github workflow issue with presenting stderr 2022-01-23 16:18:33 +01:00
Hans Ulrich Niedermann
919671c89b CI: build automake based example project
Add automake based example project using libgphoto2 to have
the CI builds ensure that building a libgphoto2 frontend
with this libgphoto2 is possible.
2022-01-23 15:41:05 +01:00
Hans Ulrich Niedermann
774c7c58e7 gh workflow: install libgd-dev 2021-11-03 22:23:30 +01:00
Hans Ulrich Niedermann
dd7b203c1e gh workflows: remove requirements for flex, bison
As 4316f75ed4 has removed gp2ddb
with its use of flex and bison, we do not need flex and bison
any more, and so the github workflows do not need to install
flex and bison either.
2021-08-07 16:56:16 +02:00
Marcus Meissner
7a7c169ba4 install things 2020-10-11 18:48:20 +02:00
Marcus Meissner
6a01cd9d0d Create codeql-analysis.yml 2020-10-11 18:41:24 +02:00
Aiden Leong
05d15ae05a run apt-get update before installing any package 2020-08-27 20:15:39 +08:00
Marcus Meissner
0d22874bd4 added bison 2020-05-26 10:14:23 +02:00
Marcus Meissner
1fceba47bd adde flex 2020-05-26 10:11:07 +02:00
Marcus Meissner
d9a538f85c more packages by default ... 2020-05-26 10:07:17 +02:00
Marcus Meissner
28b6fb7ec7 sudo for apt-get 2020-05-26 10:05:22 +02:00
Marcus Meissner
16a6f0456a apt-get install autopoint 2020-05-26 10:03:41 +02:00
Marcus Meissner
ffb17ec11d autoreconf it 2020-05-26 09:55:35 +02:00
Marcus Meissner
e9968ca25b added github action make / mak check 2020-05-26 08:24:41 +02:00