Merge remote-tracking branch 'origin/dev' into dev #181
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
| # This starter workflow is for a CMake project running on a single platform. There is a different starter workflow if you need cross-platform coverage. | |
| # See: https://github.com/actions/starter-workflows/blob/main/ci/cmake-multi-platform.yml | |
| name: Build and Test (Linux) | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - dev | |
| pull_request: | |
| branches: | |
| - master | |
| - dev | |
| env: | |
| BUILD_TYPE: Release | |
| CROSS_TYPE: linux | |
| jobs: | |
| build-and-test: | |
| runs-on: arc-runner-set | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| xargs -a apt-package-dependencies.txt sudo apt-get install -y | |
| - name: Configure CMake | |
| run: cmake -B ${{github.workspace}}/build/linux -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCROSS_TYPE=${{env.CROSS_TYPE}} | |
| - name: Build | |
| run: cmake --build ${{github.workspace}}/build/linux --config ${{env.BUILD_TYPE}} -j3 | |
| - name: Run CTest | |
| working-directory: ${{github.workspace}}/build/linux | |
| run: ctest -C ${{env.BUILD_TYPE}} --rerun-failed --output-on-failure |