File: Intel.yml

package info (click to toggle)
g2clib 2.3.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,600 kB
  • sloc: ansic: 28,287; python: 76; sh: 46; makefile: 26
file content (58 lines) | stat: -rw-r--r-- 1,383 bytes parent folder | download | duplicates (2)
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