fix: 更新版本号至8.2.83,修改错误处理方式,重构资源管理 #40
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: test | |
| on: | |
| push: | |
| branches: [ "*" ] | |
| paths: | |
| - 'source/**' | |
| - 'tests/**' | |
| - '.github/workflows/test.yml' | |
| pull_request: | |
| # 除了master分支,其他分支都不触发 | |
| branches: [ master ] | |
| paths: | |
| - 'source/**' | |
| - 'tests/**' | |
| - '.github/workflows/test.yml' | |
| env: | |
| # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | |
| BUILD_TYPE: Release | |
| jobs: | |
| build: | |
| # 跳过提交信息开头为doc:或者docs:的提交 | |
| if: "!startsWith(github.event.head_commit.message, 'doc:') && !startsWith(github.event.head_commit.message, 'docs:')" | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: clone third party submodule | |
| run: git submodule update --init --recursive | |
| - name: Configure CMake | |
| run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_CVAUTOTRACK_TESTS=ON | |
| - name: Build | |
| run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} | |
| - name: Test | |
| working-directory: ${{github.workspace}}/build | |
| run: ctest -C ${{env.BUILD_TYPE}} |