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

fixing Cpack

parent 5556b08f
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,7 @@ jobs: ...@@ -14,7 +14,7 @@ jobs:
steps: steps:
- name: Install dependencies - name: Install dependencies
run: | run: |
yum install -y openssh-clients cmake wget git gcc-c++ gcc-gfortran python39 bzip2 diffutils zlib-devel rpm-build yum install -y openssh-clients cmake wget git gcc-c++ gcc-gfortran python39 bzip2 diffutils zlib-devel rpm-build --skip-broken
ln -s /usr/bin/python3 /usr/bin/python ln -s /usr/bin/python3 /usr/bin/python
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
...@@ -33,17 +33,25 @@ jobs: ...@@ -33,17 +33,25 @@ jobs:
uses: hendrikmuhs/ccache-action@v1.2 uses: hendrikmuhs/ccache-action@v1.2
- name: Build - name: Build
run: | run: |
export PATH="~/openfpm_dependencies/ccache-4.8-linux-x86_64/ccache:$PATH"
./build.sh $(pwd) unused pdata 0 ${{ github.ref }} ./build.sh $(pwd) unused pdata 0 ${{ 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) version=$(uname -m)
ln -s ./LICENSE.md bsd3.txt ln -s ./LICENSE.md bsd3.txt
ln -s ./README.md README.txt ln -s ./README.md README.txt
cp $HOME/openfpm_vars $HOME/openfpm_dependencies/${{ github.ref }}/
cp $HOME/.openfpm.mk $HOME/openfpm_dependencies/${{ github.ref }}/
cd build cd build
export DEP_PACKING=~/openfpm_dependencies/${{ github.ref }}/ export DEP_PACKING=$HOME/openfpm_dependencies/${{ github.ref }}/
printf " -DCPACK_RUN_INSTALL_DEPENDENCIES=ON" >> cmake_build_options; printf " -DCPACK_RUN_INSTALL_DEPENDENCIES=ON" >> cmake_build_options;
bash cmake_build_options; bash cmake_build_options;
cp ~/openfpm_vars ~/openfpm_dependencies/${{ github.ref }}/
cp ~/.openfpm.mk ~/openfpm_dependencies/${{ github.ref }}/
echo "Calling CPACK" echo "Calling CPACK"
cpack -G RPM centos cpack -G RPM centos
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
...@@ -51,11 +59,7 @@ jobs: ...@@ -51,11 +59,7 @@ jobs:
exit 1 exit 1
fi fi
mv openfpm_pdata-$ofp_version-Linux.rpm openfpm-$ofp_version-nightly-Linux-$version.rpm 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 - name: Upload Artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
...@@ -82,19 +86,31 @@ jobs: ...@@ -82,19 +86,31 @@ jobs:
key: macos-dep-${{ github.ref }} key: macos-dep-${{ github.ref }}
- name: Build - name: Build
run: | run: |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" export CC=gcc-12
export CXX=g++-12
./build.sh $(pwd) unused pdata 0 ${{ github.ref }} ./build.sh $(pwd) unused pdata 0 ${{ 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 source $HOME/openfpm_vars
version=$(uname -m) version=$(uname -m)
ln -s ./LICENSE.md bsd3.txt ln -s ./LICENSE.md bsd3.txt
ln -s ./README.md README.txt ln -s ./README.md README.txt
cp $HOME/openfpm_vars $HOME/openfpm_dependencies/${{ github.ref }}/
cp $HOME/.openfpm.mk $HOME/openfpm_dependencies/${{ github.ref }}/
cd build cd build
export DEP_PACKING=~/openfpm_dependencies/${{ github.ref }}/ export DEP_PACKING=$HOME/openfpm_dependencies/${{ github.ref }}/
printf " -DCPACK_RUN_INSTALL_DEPENDENCIES=ON" >> cmake_build_options; printf " -DCPACK_RUN_INSTALL_DEPENDENCIES=ON" >> cmake_build_options;
tail cmake_build_options tail cmake_build_options
bash cmake_build_options; bash cmake_build_options;
cp ~/openfpm_vars ~/openfpm_dependencies/${{ github.ref }}/
cp ~/.openfpm.mk ~/openfpm_dependencies/${{ github.ref }}/
echo "Calling CPACK" echo "Calling CPACK"
cpack -G productbuild osx cpack -G productbuild osx
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
...@@ -102,11 +118,7 @@ jobs: ...@@ -102,11 +118,7 @@ jobs:
exit 1 exit 1
fi fi
mv openfpm_pdata-$ofp_version-Darwin.pkg openfpm-$ofp_version-nightly-Darwin-$version.pkg mv openfpm_pdata-$ofp_version-Darwin.pkg openfpm-$ofp_version-nightly-Darwin-$version.pkg
- uses: actions/cache/save@v3
if: always()
with:
path: ~/openfpm_dependencies/
key: macos-dep-${{ github.ref }}
- name: Upload Artifact - name: Upload Artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: 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