Build+Test CI #681
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
| # GitHub actions workflow. | |
| # https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions | |
| name: Build+Test CI | |
| on: | |
| push: | |
| branches: [master] | |
| tags: [linux-v*] | |
| schedule: | |
| # The GH mirroring from Google GoB does not trigger push actions. | |
| # Fire it every other day to provide some coverage. This will run ~8 AM PT. | |
| - cron: '39 3 */2 * *' | |
| # Allow for manual triggers from the web. | |
| workflow_dispatch: | |
| jobs: | |
| build-test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest] | |
| cc: [gcc, clang] | |
| runs-on: ${{ matrix.os }} | |
| env: | |
| CC: ${{ matrix.cc }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Update distro sources | |
| run: sudo apt-get update | |
| - name: Install system packages | |
| run: sudo apt-get install libcap-dev | |
| - name: Install Googletest (gtest/gmock) | |
| run: ./get_googletest.sh | |
| - run: make VERBOSE=1 | |
| - run: make VERBOSE=1 check |