File: ci.yaml

package info (click to toggle)
libcyaml 1.4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 980 kB
  • sloc: ansic: 20,884; makefile: 166; sh: 13
file content (72 lines) | stat: -rw-r--r-- 1,806 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: CI
on: [push]
jobs:
  linux:
    name: '${{ matrix.os }}: ${{ matrix.compiler.vendor }}'
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        os:
          - ubuntu-22.04
          - ubuntu-20.04
        compiler:
          - vendor: gnu
            env: { CC: gcc }
          - vendor: llvm
            env: { CC: clang, CFLAGS: -gdwarf-4 }
    steps:
    - name: checkout
      uses: actions/checkout@v3
      with:
        fetch-depth: 1
    - name: deps
      run: sudo apt-get update -qq &&
           sudo apt-get install --no-install-recommends -y
               gcc
               git
               libyaml-dev
               make
               valgrind
    - name: build
      env: ${{ matrix.compiler.env }}
      run: make
    - name: tests
      env: ${{ matrix.compiler.env }}
      run: make test
    - name: valgrind
      env: ${{ matrix.compiler.env }}
      run: make valgrind-quiet
    - name: sanitize
      env: ${{ matrix.compiler.env }}
      run: make VARIANT=san test

  mac:
    name: 'macos: ${{ matrix.compiler.vendor }}'
    runs-on: macos-latest
    strategy:
      fail-fast: false
      matrix:
        compiler:
          - vendor: gnu
            env: { CC: gcc }
          - vendor: llvm
            env: { CC: clang }
    steps:
    - name: checkout
      uses: actions/checkout@v3
      with:
        fetch-depth: 1
    - name: deps
      run: brew update && brew install
               libyaml
    - name: build
      env: ${{ matrix.compiler.env }}
      run: LDFLAGS="-L$(brew --prefix)/lib"
           CFLAGS="-I$(brew --prefix)/include"
           make
    - name: test
      env: ${{ matrix.compiler.env }}
      run: LDFLAGS="-L$(brew --prefix)/lib"
           CFLAGS="-I$(brew --prefix)/include"
           make test