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

fixing Cpack

parent 07ad1dec
No related branches found
No related tags found
No related merge requests found
......@@ -14,8 +14,7 @@ jobs:
steps:
- name: Install dependencies
run: |
dnf -y --refresh update
yum install -y openssh-clients cmake wget git gcc-c++ gcc-gfortran python39 bzip2 diffutils zlib-devel yum-utils rpm-build
yum install -y openssh-clients cmake wget git gcc-c++ gcc-gfortran python39 bzip2 diffutils zlib-devel rpm-build
ln -s /usr/bin/python3 /usr/bin/python
- uses: actions/checkout@v3
with:
......@@ -47,22 +46,9 @@ jobs:
run: |
export PATH="~/ccache-4.8-linux-x86_64/ccache:$PATH"
./build.sh $(pwd) unused pdata 0 ${{ github.ref }}
# #cp $HOME/openfpm_vars $HOME/openfpm_dependencies/${{ github.ref }}/
# #cp $HOME/.openfpm.mk $HOME/openfpm_dependencies/${{ github.ref }}/
- uses: actions/cache/save@v3
if: always()
with:
path: ~/openfpm_dependencies/
key: almalinux-dep-${{ github.ref }}
- name: Create bundle
run: |
export PATH="$PATH:/usr/local/bin:"
source $HOME/openfpm_vars
version=$(uname -m)
ln -s ./LICENSE.md bsd3.txt
ln -s ./README.md README.txt
cd build
export DEP_PACKING=$HOME/openfpm_dependencies/${{ github.ref }}
printf " -DCPACK_RUN_INSTALL_DEPENDENCIES=ON" >> cmake_build_options;
bash cmake_build_options;
echo "Calling CPACK"
......@@ -72,7 +58,11 @@ jobs:
exit 1
fi
mv openfpm_pdata-$ofp_version-Linux.rpm openfpm-$ofp_version-nightly-Linux-$version.rpm
- uses: actions/cache/save@v3
if: always()
with:
path: ~/openfpm_dependencies/
key: almalinux-dep-${{ github.ref }}
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
......@@ -102,6 +92,8 @@ jobs:
export CC=gcc-12
export CXX=g++-12
./build.sh $(pwd) unused pdata 0 ${{ github.ref }}
ln -s ./LICENSE.md bsd3.txt
ln -s ./README.md README.txt
cd build
printf " -DCPACK_RUN_INSTALL_DEPENDENCIES=ON" >> cmake_build_options;
bash cmake_build_options;
......@@ -112,37 +104,11 @@ jobs:
exit 1
fi
mv openfpm_pdata-$ofp_version-Darwin.pkg openfpm-$ofp_version-nightly-Darwin-$version.pkg
# cp $HOME/openfpm_vars $HOME/openfpm_dependencies/${{ github.ref }}/
# cp $HOME/.openfpm.mk $HOME/openfpm_dependencies/${{ github.ref }}/
- uses: actions/cache/save@v3
if: always()
with:
path: ~/openfpm_dependencies/
key: macos-dep-${{ github.ref }}
- name: Create bundle
run: |
export PATH="$PATH:/usr/local/bin:"
export CC=gcc-12
export CXX=g++-12
source $HOME/openfpm_vars
version=$(uname -m)
ln -s ./LICENSE.md bsd3.txt
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;
echo "Calling CPACK"
cpack -G productbuild osx
if [ $? -ne 0 ]; then
echo "Error creating package"
exit 1
fi
mv openfpm_pdata-$ofp_version-Darwin.pkg openfpm-$ofp_version-nightly-Darwin-$version.pkg
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
......
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