More testing of index code #340
Workflow file for this run
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: Intel | |
on: | |
push: | |
branches: | |
- develop | |
pull_request: | |
branches: | |
- develop | |
# Use custom shell with -l so .bash_profile is sourced which loads intel/oneapi/setvars.sh | |
# without having to do it in manually every step | |
defaults: | |
run: | |
shell: bash -leo pipefail {0} | |
jobs: | |
Intel: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
compilers: ["CC=icc FC=ifort CXX=icpc", "CC=icx FC=ifx CXX=icpx"] | |
steps: | |
# See https://software.intel.com/content/www/us/en/develop/articles/oneapi-repo-instructions.html | |
- name: install-dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install libaec-dev libpng-dev zlib1g-dev libjpeg-dev doxygen | |
cd /tmp | |
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | |
sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | |
rm GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | |
echo "deb https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list | |
sudo apt-get update | |
sudo apt-get install intel-oneapi-dev-utilities intel-oneapi-openmp intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic | |
echo "source /opt/intel/oneapi/setvars.sh" >> ~/.bash_profile | |
- name: checkout-jasper | |
uses: actions/checkout@v3 | |
with: | |
repository: jasper-software/jasper | |
path: jasper | |
ref: version-2.0.25 | |
- name: cache-jasper | |
id: cache-jasper | |
uses: actions/cache@v3 | |
with: | |
path: ~/Jasper | |
key: jasper-${{ runner.os }}-${{ hashFiles('jasper/VERSION') }}-${{ matrix.compilers }} | |
- name: build-jasper | |
if: steps.cache-jasper.outputs.cache-hit != 'true' | |
run: | | |
cd jasper | |
mkdir cmake_build | |
cd cmake_build | |
${{ matrix.compilers }} cmake .. -DCMAKE_INSTALL_PREFIX=~/Jasper | |
make -j2 | |
make install | |
- name: checkout | |
uses: actions/checkout@v3 | |
with: | |
path: g2c | |
- name: Initialize CodeQL | |
if: ${{ matrix.compilers == 'CC=icc FC=ifort CXX=icpc' }} | |
uses: github/codeql-action/init@v2 | |
with: | |
languages: cpp | |
queries: +security-and-quality | |
- name: build | |
run: | | |
cd g2c | |
mkdir build | |
cd build | |
${{ matrix.compilers }} cmake -DJasper_ROOT=~/Jasper .. | |
make -j2 VERBOSE=1 | |
- name: Perform CodeQL Analysis | |
if: ${{ matrix.compilers == 'CC=icc FC=ifort CXX=icpc' }} | |
uses: github/codeql-action/analyze@v2 | |
with: | |
category: "/language:cpp" | |
- name: test | |
run: | | |
cd $GITHUB_WORKSPACE/g2c/build | |
ctest --verbose --output-on-failure --rerun-failed | |