-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(debian): package cassandra-stress for debian
Signed-off-by: Dusan Malusev <[email protected]>
- Loading branch information
Dusan Malusev
committed
Jan 9, 2025
1 parent
dd2a8e4
commit 51eec1b
Showing
2 changed files
with
15 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,6 +44,11 @@ jobs: | |
with: | ||
optional-tasks: true | ||
version: latest | ||
- name: Install Deps | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y rpm dpkg-dev devscripts debhelper dh-make | ||
- name: Build with version ${{ inputs.version }} | ||
if: ${{ inputs.version != '' }} | ||
run: ant -Dversion=${{ inputs.version }} -Drelease=true jar | ||
|
@@ -54,7 +59,10 @@ jobs: | |
ant jar | ||
- name: Artifacts | ||
if: ${{ inputs.version != '' }} | ||
run: ant -Dversion=${{ inputs.version }} -Drelease=true artifacts | ||
run: | | ||
ant -Dversion=${{ inputs.version }} -Drelease=true artifacts | ||
./scripts/build_deb.sh --version ${{ inputs.version }} | ||
./scripts/build_rpm.sh --version ${{ inputs.version }} | ||
- name: Release | ||
uses: softprops/action-gh-release@v2 | ||
id: release | ||
|
@@ -74,6 +82,8 @@ jobs: | |
build/cassandra-stress-${{ inputs.version }}-src.tar.gz | ||
build/cassandra-stress-${{ inputs.version }}-src.tar.gz.sha256 | ||
build/cassandra-stress-${{ inputs.version }}-src.tar.gz.sha512 | ||
build/cassandra-stress_${{ inputs.version }}_all.deb | ||
build/redhat/RPMS/noarch/cassandra-stress-${{ inputs.version }}-1.noarch.rpm | ||
- name: "Generate release changelog" | ||
if: ${{ inputs.version != '' }} | ||
uses: heinrichreimer/[email protected] | ||
|
@@ -89,4 +99,4 @@ jobs: | |
commit_message: "Update CHANGELOG.md" | ||
branch: master | ||
commit_options: '--no-verify --signoff' | ||
file_pattern: CHANGELOG.md | ||
file_pattern: CHANGELOG.md |
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 |
---|---|---|
|
@@ -25,16 +25,17 @@ for Apache Cassandra and Scylla. | |
rm -rf %{buildroot} | ||
|
||
install -d -m 0755 %{buildroot}%{_sysconfdir}/cassandra-stress | ||
install -d -m 0755 %{buildroot}%{_bindir} | ||
install -d -m 0755 %{buildroot}%{_datadir}/cassandra-stress/lib | ||
install -d -m 0755 %{buildroot}%{_datadir}/cassandra-stress/bin | ||
install -d -m 0755 %{buildroot}%{_datadir}/cassandra-stress/examples | ||
|
||
install -m 0644 conf/* %{buildroot}%{_sysconfdir}/cassandra-stress | ||
install -m 0644 lib/*.jar %{buildroot}%{_datadir}/cassandra-stress/lib | ||
install -m 0644 examples/*.yaml %{buildroot}%{_datadir}/cassandra-stress/examples | ||
install -m 0755 bin/cassandra-stress %{buildroot}%{_bindir}/cassandra-stress | ||
install -m 0755 bin/cassandra-stress %{buildroot}%{_datadir}/cassandra-stress/bin | ||
install -m 0755 LICENSE.txt %{buildroot}%{_datadir}/cassandra-stress | ||
ln -sf %{_datadir}/cassandra-stress/bin/cassandra-stress %{buildroot}%{_bindir}/cassandra-stress | ||
|
||
%files | ||
|
||
|
@@ -46,5 +47,5 @@ ln -sf %{_datadir}/cassandra-stress/bin/cassandra-stress %{buildroot}%{_bindir}/ | |
%{_bindir}/cassandra-stress | ||
|
||
%changelog | ||
* Fri Aug 7 2015 Takuya ASADA Takuya ASADA <[email protected]> | ||
* Fri Aug 7 2015 Takuya ASADA Takuya ASADA <[email protected]> | ||
- inital version of scylla-tools.spec |