Merge pull request #1 from marek22k/htonl #27
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: Bob the Builder | |
| # Run on all branches, including all pull requests, except the 'dev' | |
| # branch since that's where we run Coverity Scan (limited tokens/day) | |
| on: | |
| push: | |
| branches: | |
| - '**' | |
| - '!dev' | |
| pull_request: | |
| branches: | |
| - '**' | |
| jobs: | |
| build: | |
| # Verify we can build on latest Ubuntu with both gcc and clang | |
| name: ${{ matrix.compiler }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| compiler: [gcc, clang] | |
| fail-fast: false | |
| env: | |
| MAKEFLAGS: -j3 | |
| CC: ${{ matrix.compiler }} | |
| steps: | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get -y update | |
| sudo apt-get -y install tree | |
| - uses: actions/checkout@v2 | |
| - name: Build | |
| run: | | |
| make | |
| - name: Install to ~/tmp and Inspect | |
| run: | | |
| DESTDIR=~/tmp make install-strip | |
| tree ~/tmp | |
| ldd ~/tmp/usr/local/bin/mping | |
| size ~/tmp/usr/local/bin/mping | |
| ~/tmp/usr/local/bin/mping -h | |
| - name: Run Unit Tests | |
| run: | | |
| make check |