-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:hopr-framework/hopr into feature.…
…AppImage
- Loading branch information
Showing
5 changed files
with
189 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: CMake | ||
name: cmake-make | ||
|
||
on: | ||
push: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: cmake-ninja | ||
|
||
on: | ||
push: | ||
#pull_request: | ||
|
||
jobs: | ||
build: | ||
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac. | ||
# You can convert this to a matrix build if you need cross-platform coverage. | ||
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix | ||
runs-on: ubuntu-latest | ||
|
||
# Use centos7 | ||
container: | ||
image: centos:7 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Dependencies | ||
run: | | ||
curl -L -O https://github.com/Kitware/CMake/releases/download/v3.16.4/cmake-3.16.4-Linux-x86_64.sh | ||
chmod +x cmake-3.16.4-Linux-x86_64.sh | ||
./cmake-3.16.4-Linux-x86_64.sh --skip-license --prefix=/usr/local | ||
curl -L -O https://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/epel/7/x86_64/Packages/p/p7zip-16.02-20.el7.x86_64.rpm | ||
curl -L -O https://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/epel/7/x86_64/Packages/p/p7zip-plugins-16.02-20.el7.x86_64.rpm | ||
rpm -U --quiet p7zip-16.02-20.el7.x86_64.rpm | ||
rpm -U --quiet p7zip-plugins-16.02-20.el7.x86_64.rpm | ||
yum install -y epel-release | ||
yum install -y make libasan gcc-gfortran gcc-c++ unzip git openblas-devel lapack-devel zlib-devel | ||
curl -L -O https://github.com/ninja-build/ninja/releases/download/v1.11.1/ninja-linux.zip | ||
unzip ninja-linux.zip | ||
mv ./ninja /usr/bin | ||
- name: Configure CMake | ||
shell: bash | ||
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. | ||
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type | ||
#run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | ||
# hdf5-openmpi-devel on centos7 probably broken | ||
#run: cmake -G Ninja -B ${{github.workspace}}/build -DLIBS_BUILD_HDF5=OFF -DCMAKE_BUILD_TYPE=Release -DLIBS_USE_MPI=OFF | ||
run: cmake -G Ninja -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release -DLIBS_USE_MPI=OFF | ||
|
||
- name: Build | ||
shell: bash | ||
# Build your program with the given configuration | ||
#run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} | ||
run: cmake --build ${{github.workspace}}/build | ||
|
||
- name: Create archive | ||
run: | | ||
mkdir artifact | ||
7z a artifact/hopr.zip ${{github.workspace}}/build/bin/hopr | ||
# Upload hopr binary archive as an artifact | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: hopr-binary-archives | ||
path: artifact |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.