dgibson / dtc

Device Tree Compiler
215 stars 127 forks source link

workflows: build: Add Meson build job #110

Closed ernestask closed 11 months ago

ernestask commented 1 year ago

This commit adds a parallel job to run Meson test builds.

ernestask commented 1 year ago

Seems like a misplaced -Werror is causing the Python module to not build (SWIG spits out some not-nice code).

dgibson commented 1 year ago

@ernestask in the github action itself I'm seeing setuptools errors before we even get to swig.

ernestask commented 1 year ago

Oh, right, that is caused by not having a recent-enough git. If you check the logs for the checkout step, you’ll see a warning.

ernestask commented 1 year ago

But this is a draft anyway, I’ll continue tinkering today.

ernestask commented 1 year ago

A couple of hacks later, it seems to be building.

Make builds are not affected, because they use a different kludge (SETUPTOOLS_SCM_PRETEND_VERSION="0").

dgibson commented 1 year ago

Oh, right, that is caused by not having a recent-enough git. If you check the logs for the checkout step, you’ll see a warning.

Uh.. not recent enough which git? I'm literally working from the dtc main branch...

ernestask commented 1 year ago

Uh.. not recent enough which git? I'm literally working from the dtc main branch...

I mean in the Actions runner. Currently you use a base container image for multiple distros, none of which have git installed. My phrasing could have been better.

dgibson commented 1 year ago

Uh.. not recent enough which git? I'm literally working from the dtc main branch...

I mean in the Actions runner. Currently you use a base container image for multiple distros, none of which have git installed. My phrasing could have been better.

Ah! Now I see.

blmaier commented 12 months ago

A couple of hacks later, it seems to be building.

Make builds are not affected, because they use a different kludge (SETUPTOOLS_SCM_PRETEND_VERSION="0").

I opened a pull request to fix the setuptools_scm issue so a git repo is no longer required https://github.com/dgibson/dtc/pull/114

dgibson commented 12 months ago

@ernestask as @blmaier notes we have some fixes on the way which should make this worth rebasing.

Note that before I can apply, I'll also need at least Signed-off-by lines on each of the patches in this series. Most of the patches will also need a more substantial commit message giving the rationale for each change (just a subject line is almost never sufficient).