Skip to content

Commit

Permalink
boulder-data: Use binary(*) deps instead of named ones
Browse files Browse the repository at this point in the history
Signed-off-by: Reilly Brogan <[email protected]>
  • Loading branch information
ReillyBrogan committed Jan 14, 2025
1 parent ec2ef81 commit 0a484cd
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 30 deletions.
8 changes: 4 additions & 4 deletions boulder/data/macros/actions/cargo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ actions:
command: |
cargo fetch -v --locked
dependencies:
- rust
- binary(cargo)

- cargo_build:
description: Build the rust project
command: |
cargo build %(options_cargo_release)
dependencies:
- rust
- binary(cargo)

- cargo_install:
description: Install the built binary
Expand All @@ -37,14 +37,14 @@ actions:
}
cargo_install
dependencies:
- rust
- binary(cargo)

- cargo_test:
description: Run tests
command: |
cargo test %(options_cargo_release) --workspace
dependencies:
- rust
- binary(cargo)

definitions:
# The default cargo build profile
Expand Down
12 changes: 6 additions & 6 deletions boulder/data/macros/actions/cmake.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,36 +5,36 @@ actions:
command: |
cmake %(options_cmake)
dependencies:
- cmake
- binary(cmake)

- cmake_unity:
description: Perform cmake with unity build enabled
command: |
cmake -DCMAKE_UNITY_BUILD=ON %(options_cmake)
dependencies:
- cmake
- binary(cmake)

- cmake_build:
description: Build the cmake project
command: |
ninja -v -j "%(jobs)" -C "%(builddir)"
dependencies:
- ninja
- binary(ninja)

- cmake_install:
description: Install results of the build to the destination directory
command: |
DESTDIR="%(installroot)" ninja install -v -j "%(jobs)" -C "%(builddir)"
dependencies:
- ninja
- binary(ninja)

- cmake_test:
description: Run testsuite with ctest
command: |
ninja test -v -j "%(jobs)" -C "%(builddir)"
dependencies:
- cmake
- ninja
- binary(cmake)
- binary(ninja)

definitions:

Expand Down
18 changes: 9 additions & 9 deletions boulder/data/macros/actions/meson.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,40 +6,40 @@ actions:
test -e ./meson.build || ( echo "%%meson: The ./meson.build script could not be found" ; exit 1 )
CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" meson setup %(options_meson)
dependencies:
- cmake
- meson
- pkgconf
- binary(cmake)
- binary(meson)
- binary(pkgconf)

- meson_unity:
description: Run meson with unity build enabled
command: |
test -e ./meson.build || ( echo "%%meson: The ./meson.build script could not be found" ; exit 1 )
CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" meson setup --unity on %(options_meson)
dependencies:
- cmake
- meson
- pkgconf
- binary(cmake)
- binary(meson)
- binary(pkgconf)

- meson_build:
description: Build the meson project
command: |
meson compile -v -j "%(jobs)" -C "%(builddir)"
dependencies:
- meson
- binary(meson)

- meson_install:
description: Install results of the build to the destination directory
command: |
DESTDIR="%(installroot)" meson install --no-rebuild -C "%(builddir)"
dependencies:
- meson
- binary(meson)

- meson_test:
description: Run meson test
command: |
meson test --no-rebuild --print-errorlogs -j "%(jobs)" -C "%(builddir)"
dependencies:
- meson
- binary(meson)

definitions:

Expand Down
2 changes: 1 addition & 1 deletion boulder/data/macros/actions/misc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ actions:
command: |
patch -f -p1 -i
dependencies:
- patch
- binary(patch)

- tmpfiles:
description: Create a tmpfiles.d file for the package with given content
Expand Down
2 changes: 1 addition & 1 deletion boulder/data/macros/actions/perl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ actions:
command: |
perl Makefile.PL PREFIX="%(prefix)" NO_PACKLIST=1 NO_PERLLOCAL=1 INSTALLDIRS=vendor DESTDIR="%(installroot)"
dependencies:
- perl
- binary(perl)

4 changes: 2 additions & 2 deletions boulder/data/macros/actions/pgo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ actions:
}
boptim
dependencies:
- llvm-bolt
- binary(llvm-bolt)

- bolt_perf:
description: Collect perf data suitable for the bolt macros
Expand All @@ -53,7 +53,7 @@ actions:
}
bperf
dependencies:
- perf
- binary(perf)

- bolt_perf2bolt:
description: Convert perf data into bolt equivalent
Expand Down
14 changes: 7 additions & 7 deletions boulder/data/macros/actions/python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,22 @@ actions:
test -e ./setup.py || ( echo "%%python: The ./setup.py script could not be found" ; exit 1 )
python3 setup.py build
dependencies:
- python
- binary(python3)

- python_install:
description: Install python package to the destination directory
command: |
python3 setup.py install --root="%(installroot)"
dependencies:
- python
- binary(python3)
- python-packaging # auto deps handler

- pyproject_build:
description: Build a wheel for python PEP517 projects
command: |
python3 -m build --wheel --no-isolation
dependencies:
- python
- binary(python3)
- python-build
- python-wheel

Expand All @@ -30,7 +30,7 @@ actions:
command: |
python3 -m installer --destdir="%(installroot)" dist/*.whl
dependencies:
- python
- binary(python3)
- python-installer

# TODO: Investigate whether providing additional -opt1.pyc and -opt2.pyc from increasing
Expand All @@ -41,11 +41,11 @@ actions:
command: |
function python_compile() {
if [ -z "$1" ]; then
python -m compileall -q %(installroot) || exit 1
python3 -m compileall -q %(installroot) || exit 1
else
python -m compileall -q $* || exit 1
python3 -m compileall -q $* || exit 1
fi
}
python_compile
dependencies:
- python
- binary(python3)

0 comments on commit 0a484cd

Please sign in to comment.