fix(indicator): 修复指标增量计算中的边界条件问题, 当起始位置小于总数时才执行增量计算,避免越界访问。 #2023
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: win-build | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [windows-2022, windows-2025] | |
| arch: [x64] #, arm64] | |
| concurrency: | |
| group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-Windows-${{ matrix.os }}-${{ matrix.arch }} | |
| cancel-in-progress: true | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: xmake-io/github-action-setup-xmake@v1 | |
| with: | |
| xmake-version: 3.0.1 | |
| actions-cache-folder: '.xmake-cache' | |
| actions-cache-key: 'windows' | |
| - name: configure | |
| shell: cmd | |
| run: | | |
| pip install -r requirements.txt | |
| xmake f -c -k shared --feedback=n -y -vD | |
| - name: build | |
| shell: cmd | |
| run: | | |
| xmake -b core | |
| - name: small-test | |
| shell: cmd | |
| run: | | |
| xmake r small-test | |
| - name: test python | |
| shell: cmd | |
| run: | | |
| set PYTHONPATH=. | |
| python hikyuu/test/test.py |