Skip to content

Commit

Permalink
feature(debian): package cassandra-stress for debian
Browse files Browse the repository at this point in the history
Signed-off-by: Dusan Malusev <[email protected]>
  • Loading branch information
Dusan Malusev committed Jan 9, 2025
1 parent dd2a8e4 commit 51eec1b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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]
Expand All @@ -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
5 changes: 3 additions & 2 deletions dist/redhat/cassandra-stress.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

0 comments on commit 51eec1b

Please sign in to comment.