mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-28 22:53:28 +00:00
ci: save and export browser bench
This commit is contained in:
38
.github/workflows/zig-test.yml
vendored
38
.github/workflows/zig-test.yml
vendored
@@ -71,7 +71,43 @@ jobs:
|
|||||||
run: zig build -Dengine=v8
|
run: zig build -Dengine=v8
|
||||||
|
|
||||||
- name: zig build test
|
- name: zig build test
|
||||||
run: zig build test -Dengine=v8
|
run: zig build test -Dengine=v8 -- --json > bench.json
|
||||||
|
|
||||||
- name: zig build release
|
- name: zig build release
|
||||||
run: zig build -Doptimize=ReleaseSafe -Dengine=v8
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user