Commit Graph

15 Commits

Author SHA1 Message Date
Caleb Connolly
67f2d38308 ci: add alpine tests
I plan to package CDBA in alpine, as it uses musl libc it is a lot
easier for things to break there. Add alpine latest edge and stable
build tests to catch these.

Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
2023-11-06 12:24:54 +00:00
Caleb Connolly
ba8fa6e300 only enable -Werror in CI
Enabling -Werror by default sucks for everyone who isn't maintaining
CDBA. By all means we should enable it in CI, but not for users and
not for folks packaging it in distros.

Remove it from the flags in meson.build, and use mesons built in option
to enable it only in CI.

See:
https://embeddedartistry.com/blog/2017/05/22/werror-is-not-your-friend/

Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
2023-11-06 12:24:53 +00:00
Neil Armstrong
049cf31307 Add samples and CI test
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2023-11-02 11:09:32 +01:00
Dmitry Baryshkov
01372464b2 CI: disable Ubuntu Bionic
Client-only builds benefit from using feature options, which are not
supported by the meson 0.45.1 (the version in Ubuntu bionic).

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
2023-11-02 11:32:42 +02:00
Neil Armstrong
4225dc819c Remove Makefile
Remove the Makefile and all the references in the README
and CI scripts.

Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2023-10-02 15:19:21 +02:00
Neil Armstrong
93a2e192e6 Use autobuild for CodeQL
This detects Meson automatically and drops custom build step

Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2023-10-02 15:18:57 +02:00
Neil Armstrong
6cbe23c92e Generate meson cross compile file
Meson requires a cross_compile file for foreign architectures,
and also needs the CPU family.

Add FAMILY to all matrix entries
Remove unused MODE
Print PKG_CONFIG_PATH
Add i386 special Meson setup case
Add cross-compile Meson setup case

Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2023-10-02 15:18:56 +02:00
Neil Armstrong
f7d7054933 Add meson build to CI
Add x86_64 only meson build for now, meson requires some
cross-compile files to be passed.

Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
2023-10-02 15:18:56 +02:00
Krzysztof Kozlowski
1353a029aa ci: keep env variables ordered by name
Put 'pkg_config_path' before 'variant' so the environment variables are
ordered alphabetically.  No functional changes.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
2023-09-22 22:03:06 +02:00
Krzysztof Kozlowski
04f83b65f2 ci: run builds periodically
Without big development activity, thus workflows triggered on changes,
CI builds might never run.  In the same time distros actually change, so
things can get be broken due to external (distro) reasons.  This is
especially true for development versions, like Debian testing.

Run at least once per week, to be sure everything still builds even
without development activity.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
2023-09-22 21:06:06 +02:00
Krzysztof Kozlowski
4c1216134c ci: use Debian ARM hard-float port instead of armel
Newer ARMv7 boards are actually supported by armhf, not armel.  armel
containers might not even work:

  The following packages have unmet dependencies:
    libc6-dev:armel : Depends: linux-libc-dev:armel but it is not installable
  E: Unable to correct problems, you have held broken packages.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
[DB: fixed pkg-config-path]
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
2023-09-21 16:52:54 +03:00
Dmitry Baryshkov
b6ef0718d4 ci: install pkg-config or pkgconf
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
2023-09-21 16:37:48 +03:00
Konrad Dybcio
6ea5f8f123 ci: Drop EOL ubuntu kinetic
and leave a comment about lunar EOL

Signed-off-by: Konrad Dybcio <konradybcio@kernel.org>
2023-09-21 01:53:05 +02:00
Konrad Dybcio
721f440e7d Drop EOL fedora branches
Signed-off-by: Konrad Dybcio <konradybcio@kernel.org>
2023-09-21 01:36:12 +02:00
Krzysztof Kozlowski
432e9b2192 ci: add basic Github Actions Continuous Integration builds
Add Continuous Integration using Github actions, re-using similar setup
from linux-nfc/neard [1] (dropped Alpine, Ubuntu i386, sanitizers and
few others action steps).  Since I copied most files, I retained all
original copyrights.

The CI will build cdba for several different distros and architectures.

[1] https://github.com/linux-nfc/neard

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
2023-05-07 13:33:20 -05:00