File: ubuntu.yml

package info (click to toggle)
libstreamvbyte 0.5.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 576 kB
  • sloc: ansic: 5,697; makefile: 69
file content (40 lines) | stat: -rw-r--r-- 1,110 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
30
31
32
33
34
35
36
37
38
39
40
name: Ubuntu 20.04 CI (GCC 9)

on:
  push:
    branches:
      - master
  pull_request:
    branches:
      - master

jobs:
  ubuntu-build:
    if: >-
      ! contains(toJSON(github.event.commits.*.message), '[skip ci]') &&
      ! contains(toJSON(github.event.commits.*.message), '[skip github]')
    runs-on: ubuntu-20.04
    steps:
      - uses: actions/checkout@v2
      - name: Use cmake (debug)
        run: |
          mkdir builddebug &&
          cd builddebug &&
          cmake -DCMAKE_BUILD_TYPE=buildundefsani ..  &&
          cmake --build .   &&
          ctest --output-on-failure
      - name: Use cmake (release)
        run: |
          mkdir buildrelease &&
          cd buildrelease &&
          cmake -DCMAKE_BUILD_TYPE=Release ..  &&
          cmake --build .   &&
          ctest --output-on-failure

      - name: Use cmake (undefined sanitizer)
        run: |
          mkdir buildundefsani &&
          cd buildundefsani &&
          cmake -DSTREAMVBYTE_SANITIZE_UNDEFINED=ON -DCMAKE_BUILD_TYPE=buildundefsani ..  &&
          cmake --build .   &&
          ctest --output-on-failure