Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
Use env var for performance results path
Richie McIlroyc7dc3eef236b
diff --git a/.github/workflows/performance-regressions.yml b/.github/workflows/performance-regressions.ymlindex f0ef522d7..dc1c23f37 100644--- a/.github/workflows/performance-regressions.yml+++ b/.github/workflows/performance-regressions.yml@@ -14,6 +14,8 @@ jobs:- macos-latest- windows-latestruns-on: ${{ matrix.runner }}+ env:+ PERFORMANCE_RESULTS_PATH: performance-results-${{ runner.os }}.jsonsteps:- name: Checkout Capuses: actions/checkout@v4@@ -48,32 +50,32 @@ jobs:- name: Run performance suiteid: performance_suitecontinue-on-error: true- run: cargo run --release -p cap-test -- suite performance --recording-path performance-fixtures/reference-recording.cap --duration 8 --output performance-results.json --gate+ run: cargo run --release -p cap-test -- suite performance --recording-path performance-fixtures/reference-recording.cap --duration 8 --output "$PERFORMANCE_RESULTS_PATH" --gate- name: Upload resultsif: always()uses: actions/upload-artifact@v4with:name: performance-results-${{ matrix.runner }}- path: performance-results.json+ path: ${{ env.PERFORMANCE_RESULTS_PATH }}- name: Print resultsif: always()shell: bashrun: |- if [ -f performance-results.json ]; then- cat performance-results.json+ if [ -f "$PERFORMANCE_RESULTS_PATH" ]; then+ cat "$PERFORMANCE_RESULTS_PATH"else- echo "performance-results.json not found"+ echo "$PERFORMANCE_RESULTS_PATH not found"fi- name: Enforce suite gateif: always() && steps.performance_suite.outcome != 'success'shell: bashrun: |- if [ -f performance-results.json ]; then- target/release/cap-test report performance-results.json+ if [ -f "$PERFORMANCE_RESULTS_PATH" ]; then+ target/release/cap-test report "$PERFORMANCE_RESULTS_PATH"else- echo "performance-results.json not found"+ echo "$PERFORMANCE_RESULTS_PATH not found"fiexit 1