-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ci): modified action to build rpm
- Loading branch information
Showing
2 changed files
with
90 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,26 @@ | ||
Name: ALUMET | ||
Name: alumet | ||
Version: 0.5.0 | ||
Release: 1%{?dist} | ||
Release: %{release} | ||
Summary: A tool for measuring the energy consumption and performance metrics | ||
License: EUPL | ||
Url: https://github.com/alumet-dev/alumet | ||
Source: %{name}_v%{version}.tar.gz | ||
Source: %{name}.tar.gz | ||
BuildArch: x86_64 | ||
|
||
%package alumet-local-agent | ||
Summary: alumet-local-agent package | ||
%description alumet-local-agent | ||
This package contains the alumet app agent. | ||
|
||
# Disable this line if you wish to support all platforms. | ||
# In most situations, you will likely only target tier1 arches for user facing components. | ||
%package alumet-relay-server | ||
Summary: alumet-relay-server package | ||
%description alumet-relay-server | ||
This package contains the alumet alumet-relay-server. | ||
|
||
%package alumet-relay-client | ||
Summary: alumet-relay-client package | ||
%description alumet-relay-client | ||
This package contains the alumet alumet-relay-client. | ||
|
||
%description | ||
Customizable and efficient tool for measuring the energy consumption and performance metrics of software on HPC, Cloud and Edge devices. | ||
|
@@ -19,21 +30,37 @@ Customizable and efficient tool for measuring the energy consumption and perform | |
|
||
|
||
%build | ||
%{cargo_build} | ||
|
||
cd alumet/app-agent | ||
json=$(CARGO_TARGET_DIR=%{_builddir} cargo build --bins --release --all-features --message-format=json-render-diagnostics "$@") | ||
executables=$(echo "$json" | grep -oP '"executable":"\K[^"]+' | tr '\n' ' ') | ||
echo "$executables" > %{_builddir}/executables.txt | ||
|
||
|
||
|
||
%install | ||
pwd | ||
ls -al | ||
cd app-agent | ||
%{cargo_install} | ||
pwd | ||
ls -al | ||
mkdir -p %{buildroot}%{_bindir} | ||
ls -al %{_builddir} | ||
ls -al %{_builddir}/release/ | ||
ls -al %{_builddir}/release/build/ | ||
ls -al %{_builddir}/release/incremental | ||
ls -al %{buildroot}%{_bindir} | ||
executables=$(cat %{_builddir}/executables.txt) | ||
for binary in $executables; do | ||
filename=$(basename "$binary") | ||
install -D -m 0755 "$binary" %{buildroot}%{_bindir}/"$filename" | ||
done | ||
|
||
|
||
%files alumet-local-agent | ||
%{_bindir}/alumet-local-agent | ||
|
||
%files alumet-relay-server | ||
%{_bindir}/alumet-relay-server | ||
|
||
%files alumet-relay-client | ||
%{_bindir}/alumet-relay-client | ||
|
||
|
||
%files | ||
# %license LICENSE | ||
%{_bindir}/alumet-agent | ||
|
||
|
||
%clean | ||
ù{cargo} | ||
%changelog | ||
* Wed Sep 18 2024 Cyprien [email protected] - 0.0.1 | ||
- Initial package |