mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Allow OHOS bencher to get the model name for testbed. (#37026)
Allow OHOS bencher to get the model name for testbed.
Currently we rely on simple `hdc bugreport` and awk. `hdc bugreport`
spits out a lot of information so it is kind of slow. But that should be
ok.
Working run (with the usual caveats of removing the checks in the file)
can be found here:
1506965290
Signed-off-by: Narfinger <Narfinger@users.noreply.github.com>
This commit is contained in:
parent
573663d502
commit
d8837e4a52
1 changed files with 4 additions and 1 deletions
5
.github/workflows/ohos.yml
vendored
5
.github/workflows/ohos.yml
vendored
|
@ -243,6 +243,9 @@ jobs:
|
|||
run: hitrace-bench --bencher -b "org.servo.servo" -p "https://www.servo.org" -n 5
|
||||
- name: Getting bencher
|
||||
uses: bencherdev/bencher@main
|
||||
- name: Getting model name
|
||||
run: |
|
||||
echo "MODEL_NAME=$(hdc bugreport | head -n 20 | grep MarketName | awk '{for (i=2; i<NF; i++) printf $i " "; print $NF}' -)" >> $GITHUB_ENV
|
||||
- name: Uploading to bencher.dev
|
||||
run: |
|
||||
bencher run --adapter json --file bench.json --project '${{ env.BENCHER_PROJECT }}' --token '${{ secrets.BENCHER_API_TOKEN }}' --github-actions '${{ secrets.GITHUB_TOKEN }}'
|
||||
bencher run --adapter json --file bench.json --project '${{ env.BENCHER_PROJECT }}' --token '${{ secrets.BENCHER_API_TOKEN }}' --github-actions '${{ secrets.GITHUB_TOKEN }}' --testbed="$MODEL_NAME"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue