Commit Graph

9 Commits (b98239da2f18d2bfe0934ac705ef8d8b92277f74)

Author SHA1 Message Date
Brandon Maier 4fd3f4f0a9 github: enforce testing pylibfdt and yaml support
The Ubuntu runner was not building the yaml support as it's using Ubuntu
22 (jammy) which uses libyaml 0.2.2, but the build requires libyaml
0.2.3. Switch to Ubuntu 23 which has libyaml 0.2.5.

This was not detected by the runner as the Yaml feature defaults to
"auto" which turns off if it fails to find the dependency. In the runner
force yaml to enabled so if it fails to build it will trigger a build
failure.

We also force python support for the same reason.

Signed-off-by: Brandon Maier <brandon.maier@collins.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2024-03-19 15:31:56 +11:00
Marc-André Lureau b0aacd0a77 github: add windows/msys CI build
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2024-03-06 22:30:33 +11:00
David Gibson ae97d97458 github: Don't accidentally suppress test errors
The last commit, displaying the meson testlog if we fail tests had the
accidentaly side effect of not propagating the failure to show up properly
in github's dashboard.  Fix that.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2024-03-06 15:48:37 +11:00
David Gibson 057a7dbbb7 github: Display meson test logs on failure
Currently the way we integrate the existing tests into meson means meson
test itself doesn't show any detailed logs of the failures, those just go
to the meson testlog file.  As a hack to see what's failing in CI builds,
display that file if the tests fail.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2024-03-06 15:11:14 +11:00
David Gibson 417e3299db github: Update to newer checkout action
We're getting deprecation warnings about the v3 one.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2024-03-06 14:46:22 +11:00
Brandon Maier 6c5e189fb9 github: add workflow for Meson builds
Signed-off-by: Brandon Maier <brandon.maier@collins.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2023-09-03 22:20:35 +10:00
Brandon Maier 35019949c4 workflows: build: remove setuptools_scm hack
The SETUPTOOLS_SCM_PRETEND_VERSION was needed as ./setup.py would fail
without it. As setuptools_scm will fail if there is not git repo, and
the github workflow container does not include the source code git repo.

A previous commit added "fallback_version" to setuptools_scm which
instructs it to use the version from VERSION.txt when the git repo is
missing. So this hack is no longer needed.

Signed-off-by: Brandon Maier <brandon.maier@collins.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2023-08-06 14:53:29 +10:00
Biswapriyo Nath e8364666d5 CI: Add build matrix with multiple Linux distributions
set SETUPTOOLS_SCM_PRETEND_VERSION="0" variable because GitHub Actions
does not copy the .git directory into the container. Without that, the
build fails with the following error

LookupError: setuptools-scm was unable to detect version for /__w/dtc/dtc.
Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2023-05-16 19:30:09 +10:00
Uwe Kleine-König ab481e4830 Add definition for a GitHub Actions CI job
The job just builds the full configuration on latest Ubuntu

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
2023-05-14 15:11:32 +10:00