mirror of
https://github.com/servo/servo.git
synced 2025-08-02 12:10:29 +01:00
ohos CI: Simplify getting the model name (#38219)
Same output, but much easier and faster than sifting through the whole output of hdc bugreport. Testing: CI change: `./mach try` [run](https://github.com/servo/servo/actions/runs/16460283107) Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
This commit is contained in:
parent
b8a1df2bc2
commit
6417d3077b
1 changed files with 2 additions and 1 deletions
3
.github/workflows/ohos.yml
vendored
3
.github/workflows/ohos.yml
vendored
|
@ -295,8 +295,9 @@ jobs:
|
|||
run: touch speedometer.json
|
||||
if: ${{ steps.BencherRun.outcome == 'failure' }}
|
||||
- name: Getting model name
|
||||
# awk is used to remove trailing spaces
|
||||
run: |
|
||||
echo "MODEL_NAME=$(hdc bugreport | head -n 20 | grep MarketName | awk '{for (i=2; i<NF; i++) printf $i " "; print $NF}' -)" >> $GITHUB_ENV
|
||||
echo "MODEL_NAME=$(hdc shell param get const.product.name | awk '{$1=$1;print}' )" >> $GITHUB_ENV
|
||||
- name: Combining bencher files
|
||||
run: jq --compact-output --slurp add speedometer.json bench.json > combined-bencher.json
|
||||
- uses: bencherdev/bencher@main
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue