Skip to content

Commit

Permalink
rpm build v3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
vmsachin committed May 1, 2024
1 parent 2edcea5 commit 93be9db
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,22 +80,20 @@ jobs:
- name: Package for RPM
run: |
mkdir -p pkg/rpm/Aerospike-php-client-rpm/SPECS
mkdir -p pkg/rpm/Aerospike-php-client-rpm/SOURCES
cp pkg/rpm/scripts/postinst pkg/rpm/Aerospike-php-client-rpm/SOURCES
cp aerospike-connection-manager/asld pkg/rpm/Aerospike-php-client-rpm/SOURCES
cp aerospike-connection-manager/asld.toml pkg/rpm/Aerospike-php-client-rpm/SOURCES
cp target/release/libaerospike_php.so pkg/rpm/Aerospike-php-client-rpm/SOURCES
cp pkg/rpm/aerospike-php-client.spec pkg/rpm/Aerospike-php-client-rpm/SPECS
mkdir -p /github/home/rpmbuild/SOURCES
mkdir -p /github/home/rpmbuild/SPECS
cp pkg/rpm/scripts/postinst /github/home/rpmbuild/SOURCES
cp aerospike-connection-manager/asld /github/home/rpmbuild/SOURCES
cp aerospike-connection-manager/asld.toml /github/home/rpmbuild/SOURCES
cp target/release/libaerospike_php.so /github/home/rpmbuild/SOURCES
cp pkg/rpm/aerospike-php-client.spec /github/home/rpmbuild/SPECS
cd pkg/rpm/Aerospike-php-client-rpm/SOURCES
cd /github/home/rpmbuild/SOURCES
tar -czvf aerospike-php-client-1.0.2.tar.gz *
cp aerospike-php-client-1.0.2.tar.gz /github/home/rpmbuild/SOURCES/
cp pkg/rpm/aerospike-php-client.spec /github/home/rpmbuild/SPECS/
pwd
cd ..
rpmbuild -ba SPECS/aerospike-php-client.spec
rpmbuild -ba /github/home/rpmbuild/SPECS/aerospike-php-client.spec
mv ../RPMS/noarch/aerospike-php-client-1.0.2-1.noarch.rpm ../../aerospike-php-client-1.0.2-noarch.rpm
Expand Down

0 comments on commit 93be9db

Please sign in to comment.