-
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
49 additions
and
24 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,12 @@ | ||
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 | ||
|
||
|
||
# Disable this line if you wish to support all platforms. | ||
# In most situations, you will likely only target tier1 arches for user facing components. | ||
|
||
%description | ||
Customizable and efficient tool for measuring the energy consumption and performance metrics of software on HPC, Cloud and Edge devices. | ||
|
@@ -19,21 +16,19 @@ Customizable and efficient tool for measuring the energy consumption and perform | |
|
||
|
||
%build | ||
%{cargo_build} | ||
|
||
cd alumet/app-agent | ||
CARGO_TARGET_DIR=%{_builddir} cargo build --release | ||
|
||
%install | ||
pwd | ||
ls -al | ||
cd app-agent | ||
%{cargo_install} | ||
pwd | ||
ls -al | ||
mkdir -p %{buildroot}%{_bindir} | ||
ls -al %{_builddir}/release/ | ||
install -m 0755 %{_builddir}/release/alumet-agent %{buildroot}%{_bindir}/alumet-agent | ||
|
||
|
||
%files | ||
# %license LICENSE | ||
%{_bindir}/alumet-agent | ||
|
||
|
||
%clean | ||
ù{cargo} | ||
%changelog | ||
* Wed Sep 18 2024 Cyprien [email protected] - 0.0.1 | ||
- Initial package |