aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/ccpp.yml
blob: fc50b0b5ad8b1f9c26178fe8d1fa3bd399a72260 (plain)
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
name: C CI

on: [push]

jobs:
  build-1604:

    runs-on: ubuntu-16.04
    
    steps:
    - uses: actions/checkout@v1
    - name: gcc build
      run: git clean -fdx && export CC=gcc && ./autogen.sh && ./configure && make
    - name: test
      run: cd ./libinotifytools/src/ && make test && ./test
    - name: clang build
      run: git clean -fdx && export CC=clang && ./autogen.sh && ./configure && make
    - name: test
      run: cd ./libinotifytools/src/ && make test && ./test

  build-1804:

    runs-on: ubuntu-18.04

    steps:
    - uses: actions/checkout@v1
    - name: gcc build
      run: git clean -fdx && export CC=gcc && ./autogen.sh && ./configure && make
    - name: test
      run: cd ./libinotifytools/src/ && make test && ./test
    - name: clang build
      run: git clean -fdx && export CC=clang && ./autogen.sh && ./configure && make
    - name: test
      run: cd ./libinotifytools/src/ && make test && ./test