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