Merge pull request #11 from zerobounce/dependabot/github_actions/main… #20
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
| # Build and run Google Test suite on every PR. | |
| name: SDK CI | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| push: | |
| branches: [main, master] | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Install build dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y --no-install-recommends build-essential cmake libssl-dev | |
| - name: Configure and build | |
| run: cmake -S . -B build -G "Unix Makefiles" && cmake --build build | |
| - name: Run tests | |
| run: ctest --test-dir build --output-on-failure |