From 0e95de97663642a2009087a16886847a8a1fa820 Mon Sep 17 00:00:00 2001 From: "Travis F. Collins" Date: Fri, 7 Jul 2023 16:02:27 -0600 Subject: [PATCH] Add RHEL builds and collect libs Signed-off-by: Travis F. Collins --- .github/scripts/install_dependencies_rhel.sh | 8 +++++ .github/workflows/test-win.yml | 6 ++++ .github/workflows/test.yml | 37 ++++++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 .github/scripts/install_dependencies_rhel.sh diff --git a/.github/scripts/install_dependencies_rhel.sh b/.github/scripts/install_dependencies_rhel.sh new file mode 100644 index 0000000..ffbafd0 --- /dev/null +++ b/.github/scripts/install_dependencies_rhel.sh @@ -0,0 +1,8 @@ +#!/bin/bash +yum group install -y "Development Tools" +yum install -y gcc gcc-c++ git wget openssl-devel +yum install -y epel-release +yum install -q -y cmake tar bzip2 gzip gcc gcc-c++ make fftw-devel python3-pip doxygen graphviz + +pip3 install -r requirements_test.txt +pip3 install -r requirements_doc.txt \ No newline at end of file diff --git a/.github/workflows/test-win.yml b/.github/workflows/test-win.yml index 6825722..acd3867 100644 --- a/.github/workflows/test-win.yml +++ b/.github/workflows/test-win.yml @@ -53,6 +53,12 @@ jobs: cp bindings\c\src\Release\* tests\Release\ ctest -V -C Release + - name: Archive generated DLLs + uses: actions/upload-artifact@v2 + with: + name: DLLs + path: src\Release\ + BuildWindowsInstaller: runs-on: windows-latest diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 373a8b7..1304992 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,6 +31,43 @@ jobs: make -j4 make test ARGS="-VV" + TestCCentOS: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + images: ["centos:7", "centos:8"] + + container: + image: ${{ matrix.images }} + steps: + - uses: actions/checkout@v2 + - name: Set up Python 3.7 + uses: actions/setup-python@v2 + with: + python-version: 3.7 + + - name: Install dependencies + run: | + bash ./.github/scripts/install_dependencies_rhel.sh + + - name: Build and test + run: | + mkdir -p build + cd build + cmake -DBUILD_TESTS_EXAMPLES=ON .. + make -j4 + make test ARGS="-VV" + cd .. + mkdir -p libs + cp build/bindings/c/src/libgenalyzer.so* libs/ + + - name: Archive generated SOs + uses: actions/upload-artifact@v2 + with: + name: SOs + path: libs/ + CoverageTest: runs-on: ubuntu-latest