name: Bob the Builder on: push: branches: - '*' env: # https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners MAKEFLAGS: -j3 jobs: build: strategy: matrix: name: [ ubuntu-latest-gcc, ubuntu-latest-clang, macos-latest-clang ] include: - name: ubuntu-latest-gcc os: ubuntu-latest cc: gcc - name: ubuntu-latest-clang os: ubuntu-latest cc: clang - name: macos-latest-clang os: macos-latest cc: clang runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2 - name: Install MacOS dependencies if: startsWith(matrix.os,'macos') run: | brew update brew install automake tree doxygen - name: Install Linux dependencies if: startsWith(matrix.os,'ubuntu') run: | sudo apt-get update sudo apt-get install -y build-essential autoconf automake clang tree doxygen - name: Configure run: | ./autogen.sh ./configure --prefix=/usr CC=${{ matrix.cc }} - name: Build run: | make V=1 make install-strip DESTDIR=/tmp tree /tmp/usr