aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/build.yml
blob: 9dbd80645b6ded9a750b60bdc176de9948a914d6 (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
36
37
38
39
40
41
42
43
name: build

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 -j2
    - name: unit test
      run: cd ./libinotifytools/src/ && make -j2 test && ./test
    - name: integration test
      run: cd t && make -j2
    - name: clang build
      run: git clean -fdx && export CC=clang && ./autogen.sh && ./configure && make -j2
    - name: unit test
      run: cd ./libinotifytools/src/ && make -j2 test && ./test
    - name: integration test
      run: cd t && make -j2

  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 -j2
    - name: unit test
      run: cd ./libinotifytools/src/ && make -j2 test && ./test
    - name: integration test
      run: cd t && make -j2
    - name: clang build
      run: git clean -fdx && export CC=clang && ./autogen.sh && ./configure && make -j2
    - name: unit test
      run: cd ./libinotifytools/src/ && make -j2 test && ./test
    - name: integration test
      run: cd t && make -j2