Adding SystemC installation and tet compilation of all the modules #11
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: C/C++ CI | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
pull_request: | |
branches: | |
- main | |
- dev | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Cache tools | |
id: cache-deps | |
uses: actions/cache@v2 | |
with: | |
path: | | |
/usr/local/systemc-3.0.0 | |
key: ${{ runner.os }}-build-${{ hashFiles('**/setup-dependencies.sh') }} | |
restore-keys: | | |
${{ runner.os }}-build- | |
- name: Install Dependencies | |
if: steps.cache-deps.outputs.cache-hit != 'true' | |
run: | | |
sudo apt-get install -y libopencv-dev | |
wget https://github.com/accellera-official/systemc/archive/refs/tags/3.0.0.tar.gz | |
tar -xzf 3.0.0.tar.gz | |
cd systemc-3.0.0 | |
mkdir -p objdir | |
cd objdir | |
export CXX=g++ | |
../configure --prefix=/usr/local/systemc-3.0.0 | |
mkdir -p examples/ | |
cp -r ../examples/* examples/ | |
make | |
make check | |
make install | |
- name: Compile Compression | |
working-directory: ./modules/compression | |
run: make IPS_JPG_AT_EN=1 INCLUDE_OPENCV_PKG=1 | |
- name: Compile Edge Detector | |
working-directory: ./modules/edge-detector | |
run: make EDGE_DETECTOR_AT_EN=1 INCLUDE_OPENCV_PKG=1 | |
- name: Compile Filter | |
working-directory: ./modules/filter | |
run: make IPS_FILTER_LT_EN=1 TEST_MODE_IMAGE=1 IPS_DUMP_EN=1 INCLUDE_OPENCV_PKG=1 | |
- name: Compile RGB2Gray | |
working-directory: ./modules/rgb2gray | |
run: make RGB2GRAY_PV_EN=1 INCLUDE_OPENCV_PKG=1 | |
- name: Compile Unification | |
working-directory: ./modules/unification | |
run: make IMG_UNIFICATE_PV_EN=1 |