-
Notifications
You must be signed in to change notification settings - Fork 11
58 lines (48 loc) · 1.35 KB
/
Intel.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Intel
on:
push:
branches:
- develop
pull_request:
branches:
- develop
jobs:
Intel:
runs-on: ubuntu-latest
strategy:
matrix:
compilers: ["oneapi", "classic"]
steps:
- name: install-dependencies
run: |
sudo apt-get update
sudo apt-get install libaec-dev libpng-dev zlib1g-dev libjpeg-dev doxygen
- name: "Install Intel"
uses: NOAA-EMC/ci-install-intel-toolkit@develop
with:
compiler-setup: ${{ matrix.compilers }}
- name: "Build dependencies"
uses: NOAA-EMC/ci-build-nceplibs@develop
with:
jasper-version: version-2.0.25
- name: checkout
uses: actions/checkout@v4
with:
path: g2c
- name: Initialize CodeQL
if: ${{ matrix.compilers == 'classic' }}
uses: github/codeql-action/init@v2
with:
languages: cpp
queries: +security-and-quality
- name: build
run: |
cmake -S g2c -B g2c/build -DJasper_ROOT=$GITHUB_WORKSPACE/nceplibs/jasper
cmake --build g2c/build --parallel 2 --verbose
- name: Perform CodeQL Analysis
if: ${{ matrix.compilers == 'classic' }}
uses: github/codeql-action/analyze@v2
with:
category: "/language:cpp"
- name: test
run: ctest --test-dir g2c/build --verbose --output-on-failure --rerun-failed