Skip to content
Snippets Groups Projects
Commit cfee998d authored by Abhinav Singh's avatar Abhinav Singh
Browse files

fixing Cpack

parent b9a79673
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@ jobs:
steps:
- name: Install dependencies
run: |
yum clean packages
dnf --refresh update
yum install -y openssh-clients cmake wget git gcc-c++ gcc-gfortran python39 bzip2 diffutils zlib-devel yum-utils rpm-build
ln -s /usr/bin/python3 /usr/bin/python
- uses: actions/checkout@v3
......@@ -66,7 +66,7 @@ jobs:
printf " -DCPACK_RUN_INSTALL_DEPENDENCIES=ON" >> cmake_build_options;
bash cmake_build_options;
echo "Calling CPACK"
cpack -G RPM centos
cpack -G RPM centos
if [ $? -ne 0 ]; then
echo "Error creating package"
exit 1
......@@ -121,6 +121,7 @@ jobs:
ln -s ./README.md README.txt
cd build
export DEP_PACKING=$HOME/openfpm_dependencies/${{ github.ref }}
ls $DEP_PACKING
printf " -DCPACK_RUN_INSTALL_DEPENDENCIES=ON" >> cmake_build_options;
tail cmake_build_options
bash cmake_build_options;
......
......@@ -9,8 +9,7 @@ FC=$6
if [ -d "$1/PETSC" -a -f "$1/PETSC/include/petsc.h" ]; then
echo "PETSC is already installed"
echo "BUT WE ARE REINSTALLING FOR CI"
#exit 0
exit 0
fi
# Detect gcc pr clang
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment