mirror of
https://github.com/projectatomic/rpm-ostree.git
synced 2026-02-05 09:45:27 +01:00
This introduces a Justfile and Dockerfile to enable building rpm-ostree from source in a container, following the pattern established in the bootc project. See the `Justfile` for key entrypoints. Those are now used in a new GHA flow, which we'll try to move things over to. A key difference though vs bootc is because rpm-ostree has a lot of C++ too we use sccache which greatly speeds things up across incremental rebuilds. Just one side cleanup of this is before it was *terribly* painful and manual to hack on `test-container.sh`, and now it's easy, fast and optimized. Assisted-by: Claude Code (Sonnet 4.5) Signed-off-by: Colin Walters <walters@verbum.org>
14 lines
642 B
Makefile
14 lines
642 B
Makefile
srpm:
|
|
./ci/installdeps.sh
|
|
# similar to https://github.com/actions/checkout/issues/760, but for COPR
|
|
git config --global --add safe.directory '*'
|
|
# if we have a git repo with remotes, fetch tags so `git describe` gives a nice NEVRA when
|
|
# building the RPM
|
|
if git remote | grep origin; then git fetch origin --tags; fi
|
|
if [ -d .git ]; then git submodule update --init --recursive; fi
|
|
# Our primary CI build goes via RPM rather than direct to binaries
|
|
# to better test that path, including our vendored spec file, etc.
|
|
make -C packaging -f Makefile.dist-packaging srpm
|
|
if test -n "$$outdir"; then mv packaging/*.src.rpm $$outdir; fi
|
|
|