Implement a file reader class. #331
Workflow file for this run
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: CI | |
| on: | |
| schedule: | |
| # trigger the workflow on the every 2 am UTC | |
| - cron: '00 02 * * *' | |
| pull_request: | |
| paths: | |
| - '**.cpp' | |
| - '**.hpp' | |
| - '**/CMakeLists.txt' | |
| - '**.cmake' | |
| branches: | |
| - master | |
| push: | |
| paths: | |
| - '**.cpp' | |
| - '**.hpp' | |
| - '**.cmake' | |
| branches: | |
| - master | |
| workflow_dispatch: | |
| permissions: write-all | |
| jobs: | |
| linux-build-test: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: ghcr.io/yanzhaow/centipede_env:latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| compiler: [gcc, clang, libc++] | |
| name: build-test-${{ matrix.compiler }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 1 | |
| submodules: 'true' | |
| - name: pre-build | |
| uses: './.github/actions/pre_build_config' | |
| - name: restore cache | |
| if: github.event_name == 'pull_request' | |
| id: cache-restore | |
| uses: actions/cache/restore@v4 | |
| with: | |
| path: | | |
| ${{ env.PARENT_DIR }}/.conan2 | |
| key: debug-${{ matrix.compiler }} | |
| # Be very careful about CTEST_BUILD_NAME. It shouldn't contain additional double quotations | |
| - name: build-test-submit | |
| run: | | |
| ctest -S cmake/ctest_dashboard.cmake -VV\ | |
| -DTEST_MODEL=${TEST_MODEL}\ | |
| -DCTEST_CONFIGURATION_TYPE=Debug\ | |
| -DCTEST_BUILD_NAME="${{ matrix.compiler }} ${{ env.NAME_SUFFIX }}"\ | |
| -DCTEST_SITE="Github CI/CD"\ | |
| -DCONFIGURE_PRESET="debug-${{ matrix.compiler }}"\ | |
| --output-on-failure | |
| - name: generate-caches | |
| if: github.event_name != 'pull_request' | |
| uses: './.github/actions/generate_caches' | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| sanitizer-build-test: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: ghcr.io/yanzhaow/centipede_env:latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| sanitizer-type: | |
| - thread | |
| - address | |
| - undefined | |
| include: | |
| - sanitizer-type: thread | |
| check-type: 'ThreadSanitizer' | |
| - sanitizer-type: address | |
| check-type: 'AddressSanitizer' | |
| - sanitizer-type: undefined | |
| check-type: 'UndefinedBehaviorSanitizer' | |
| name: sanitizer-${{ matrix.sanitizer-type }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 1 | |
| submodules: 'true' | |
| - name: pre-build | |
| uses: './.github/actions/pre_build_config' | |
| - name: build-test-submit | |
| run: | | |
| ctest -S cmake/ctest_sanitizer.cmake -VV \ | |
| -DTEST_MODEL=${TEST_MODEL}\ | |
| -DCTEST_BUILD_NAME="${{ matrix.sanitizer-type }} sanitizer ${{ env.NAME_SUFFIX }}"\ | |
| -DCTEST_SITE="Github CI/CD"\ | |
| -DCTEST_MEMORYCHECK_TYPE=${{ matrix.check-type }}\ | |
| -DENABLE_SAN=${{ matrix.sanitizer-type }}\ | |
| --output-on-failure |