Substitute deprecated ulib functions, import submodules in github wor… #29
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: Build and test | |
| on: | |
| push: | |
| branches: [main] | |
| env: | |
| BUILD_TYPE: Debug | |
| jobs: | |
| build: | |
| name: Build and test | |
| runs-on: ${{matrix.os}} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| steps: | |
| - name: Checkout repository (with submodules) | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| fetch-depth: 0 | |
| - name: Configure CMake | |
| run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.build_config}} | |
| - name: Build | |
| run: cmake --build ${{github.workspace}}/build | |
| - name: Build Tests | |
| run: cmake --build ${{github.workspace}}/build --target eai-toolbox-test | |
| - name: Build ASAN Tests | |
| if: matrix.os != 'windows-latest' | |
| run: cmake --build ${{github.workspace}}/build --target eai-toolbox-test-asan | |
| - name: Execute Tests on Windows | |
| if: matrix.os == 'windows-latest' | |
| run: ${{github.workspace}}\build\${{env.BUILD_TYPE}}\eai-toolbox-test.exe | |
| - name: Execute ASAN Tests | |
| if: matrix.os != 'windows-latest' | |
| run: ${{github.workspace}}/build/eai-toolbox-test-asan |