File: basic.yml

package info (click to toggle)
spectra 1.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,788 kB
  • sloc: cpp: 23,044; ansic: 175; fortran: 131; makefile: 90
file content (29 lines) | stat: -rw-r--r-- 667 bytes parent folder | download
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
name: Basic CI

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [ ubuntu-22.04, ubuntu-latest ]
        compiler: [ g++, clang++ ]
        BUILD_TYPE: [ Debug, Release ]
    steps:
    - uses: actions/checkout@v4
    - name: dependencies
      run: sudo apt install g++ clang libeigen3-dev
    - name: configure
      env:
        CXX: ${{ matrix.compiler }}
      run: cmake -H. -Bbuild -DBUILD_TESTS=ON -DCMAKE_BUILD_TYPE=${{ matrix.BUILD_TYPE }}
    - name: make
      run: cmake --build build -- -j4
    - name: test
      run: cd build && ctest