Skip to content

Commit

Permalink
Add RHEL builds and collect libs
Browse files Browse the repository at this point in the history
Signed-off-by: Travis F. Collins <travis.collins@analog.com>
  • Loading branch information
tfcollins committed Jul 7, 2023
1 parent 373ecdb commit 0e95de9
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/scripts/install_dependencies_rhel.sh
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions .github/workflows/test-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 0e95de9

Please sign in to comment.