Update issue_report_template.md #153
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
name: CMake | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
env: | |
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | |
BUILD_TYPE: Release | |
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 | |
container: | |
image: centos:7 | |
steps: | |
- name: Set up Boost | |
run: yum install -y boost-static && yum install -y gcc-c++ && yum install -y make && yum install -y zlib-devel | |
- name: set up cmake | |
run: yum install -y wget && wget https://cmake.org/files/v3.4/cmake-3.4.0.tar.gz && tar xf cmake-3.4.0.tar.gz && cd cmake-3.4.0/ && ./bootstrap --prefix=/usr --datadir=share/cmake --docdir=doc/cmake && make && make install && cd .. | |
- name: get zmqlib | |
run: wget https://github.com/zeromq/libzmq/releases/download/v4.3.2/zeromq-4.3.2.zip | |
- name: compile zmqlib | |
run: yum install -y unzip && unzip zeromq-4.3.2.zip && cd zeromq-4.3.2 && mkdir build && cd build && cmake .. && make && make install && cd ../.. | |
- name: set up cppzmq | |
run: wget https://github.com/zeromq/cppzmq/archive/v4.6.0.zip && unzip v4.6.0.zip && cd cppzmq-4.6.0 && mkdir build && cd build && cmake -DCPPZMQ_BUILD_TESTS=OFF .. && make -j4 install && cd ../.. | |
- name: clone project | |
run: yum install -y git && git clone -b master https://github.com/Netis/packet-agent.git | |
- name: Configure CMake | |
# 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: cd packet-agent && mkdir build && cd build && cmake .. | |
- name: Build | |
# Build your program with the given configuration | |
run: cd packet-agent/build && make | |
#- name: Test | |
# working-directory: ${{github.workspace}}/build | |
# Execute tests defined by the CMake configuration. | |
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail | |
#run: ctest -C ${{env.BUILD_TYPE}} | |