ci: save and export browser bench

This commit is contained in:
Pierre Tachoire
2024-04-08 17:59:46 +02:00
parent e3f7504572
commit 37350b0701

View File

@@ -71,7 +71,43 @@ jobs:
run: zig build -Dengine=v8
- name: zig build test
run: zig build test -Dengine=v8
run: zig build test -Dengine=v8 -- --json > bench.json
- name: zig build release
run: zig build -Doptimize=ReleaseSafe -Dengine=v8
- name: write commit
run: |
echo "${{github.sha}}" > commit.txt
- name: upload artifact
uses: actions/upload-artifact@v3
with:
name: bench-results
path: |
bench.json
commit.txt
retention-days: 10
bench-fmt:
name: perf-fmt
needs: zig-test
# Don't execute on PR
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
container:
image: ghcr.io/lightpanda-io/perf-fmt:latest
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: download artifact
uses: actions/download-artifact@v3
with:
name: bench-results
- name: format and send json result
run: /perf-fmt bench-browser ${{ github.sha }} bench.json