Build No.90 on behalf of rukhov #90
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 Experimental project | |
| run-name: Build No.${{ github.run_number }} on behalf of ${{ github.actor }} | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| types: [opened, reopened, synchronize] | |
| push: | |
| branches: [main] | |
| jobs: | |
| build: | |
| env: | |
| VCPKG_INSTALLATION_ROOT: ${{ github.workspace }}/vcpkg | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest] | |
| include: | |
| - os: ubuntu-latest | |
| platform: linux | |
| arch: x64 | |
| steps: | |
| - name: Install Ubuntu Prerequisites | |
| if: ${{ matrix.platform == 'linux' }} | |
| run: | | |
| gcc --version | |
| #sudo apt-get update | |
| - name: Install Windows Prerequisites | |
| if: ${{ matrix.platform == 'windows' }} | |
| run: | | |
| #pip3 install opencv-python pytest | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup cache | |
| uses: ./.github/actions/vcpkg-cache | |
| with: | |
| vcpkg-root-path: ${{ env.VCPKG_INSTALLATION_ROOT }} | |
| - name: Configure project | |
| run: | | |
| cmake --preset=${{ matrix.platform }}-rel -S ./ -B ./build | |
| - name: Build | |
| run: | | |
| cmake --build ./build --config=Release | |
| - name: Make installation | |
| run: | | |
| cmake --install ./build --prefix=./install --config=Release | |
| # - name: Upload artifacts | |
| # uses: actions/upload-artifact@v4 | |
| # with: | |
| # name: atv-tools-${{ matrix.platform }} | |
| # include-hidden-files: true | |
| # path: | | |
| # install/ | |
| - name: Run Tests | |
| run: | | |
| ctest --test-dir ./build -T test --output-on-failure -C Release --verbose --output-log ./reports/tests.log |