Merge pull request #52 from AmmoniumX/master #19
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: build | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: install cmake | |
| run: sudo apt install -y cmake | |
| - name: configure | |
| run: ./configure && ./configure | |
| - name: make | |
| run: make | |
| working-directory: build | |
| test: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: install cmake and googletest | |
| run: sudo apt install -y cmake libgmock-dev lcov | |
| - name: configure | |
| run: ./configure && CMAKE_OPTIONS="-DOPTION_ENABLE_COVERAGE=On" ./configure | |
| - name: tests | |
| run: make test | |
| working-directory: build | |
| check: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: install cmake | |
| run: sudo apt install -y cmake cppcheck clang-tidy | |
| - name: configure | |
| run: ./configure && ./configure | |
| - name: check | |
| run: make check-all | |
| working-directory: build |