docs: update wiki pages [auto-generated] #36
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: Benchmark | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| build-mex: | |
| name: Build MEX | |
| runs-on: ubuntu-latest | |
| container: gnuoctave/octave:8.4.0 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Cache MEX binaries | |
| id: cache-mex | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| libs/FastSense/private/*.mex | |
| libs/SensorThreshold/private/*.mex | |
| libs/FastSense/mksqlite.mex | |
| key: mex-linux-${{ hashFiles('libs/FastSense/private/mex_src/**', 'libs/FastSense/build_mex.m') }} | |
| - name: Compile MEX files | |
| if: steps.cache-mex.outputs.cache-hit != 'true' | |
| run: octave --eval "setup();" | |
| - name: Upload MEX artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: mex-linux-bench | |
| path: | | |
| libs/FastSense/private/*.mex | |
| libs/SensorThreshold/private/*.mex | |
| libs/FastSense/mksqlite.mex | |
| retention-days: 1 | |
| benchmark: | |
| name: Performance Benchmark | |
| needs: build-mex | |
| runs-on: ubuntu-latest | |
| container: gnuoctave/octave:8.4.0 | |
| env: | |
| FASTSENSE_SKIP_BUILD: "1" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Download MEX binaries | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: mex-linux-bench | |
| - name: Run benchmark | |
| run: | | |
| xvfb-run octave --eval "addpath(pwd); setup(); addpath('scripts'); run_ci_benchmark();" | |
| - name: Fix git ownership | |
| run: git config --global --add safe.directory /__w/FastSense/FastSense | |
| - name: Store benchmark results | |
| uses: benchmark-action/github-action-benchmark@v1 | |
| with: | |
| name: FastSense Performance | |
| tool: customSmallerIsBetter | |
| output-file-path: benchmark-results.json | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| auto-push: true | |
| alert-threshold: '110%' | |
| comment-on-alert: true | |
| fail-on-alert: false | |
| alert-comment-cc-users: '@HanSur94' |