mirror of
https://github.com/lvgl/lvgl.git
synced 2026-02-05 13:30:08 +08:00
Some checks failed
Arduino Lint / lint (push) Has been cancelled
Build Examples with C++ Compiler / build-examples (push) Has been cancelled
MicroPython CI / Build esp32 port (push) Has been cancelled
MicroPython CI / Build rp2 port (push) Has been cancelled
MicroPython CI / Build stm32 port (push) Has been cancelled
MicroPython CI / Build unix port (push) Has been cancelled
C/C++ CI / Build OPTIONS_16BIT - Ubuntu (push) Has been cancelled
C/C++ CI / Build OPTIONS_24BIT - Ubuntu (push) Has been cancelled
C/C++ CI / Build OPTIONS_FULL_32BIT - Ubuntu (push) Has been cancelled
C/C++ CI / Build OPTIONS_NORMAL_8BIT - Ubuntu (push) Has been cancelled
C/C++ CI / Build OPTIONS_SDL - Ubuntu (push) Has been cancelled
C/C++ CI / Build OPTIONS_16BIT - cl - Windows (push) Has been cancelled
C/C++ CI / Build OPTIONS_16BIT - gcc - Windows (push) Has been cancelled
C/C++ CI / Build OPTIONS_24BIT - cl - Windows (push) Has been cancelled
C/C++ CI / Build OPTIONS_24BIT - gcc - Windows (push) Has been cancelled
C/C++ CI / Build OPTIONS_FULL_32BIT - cl - Windows (push) Has been cancelled
C/C++ CI / Build OPTIONS_FULL_32BIT - gcc - Windows (push) Has been cancelled
C/C++ CI / Build ESP IDF ESP32S3 (push) Has been cancelled
C/C++ CI / Run tests with 32bit build (push) Has been cancelled
C/C++ CI / Run tests with 64bit build (push) Has been cancelled
BOM Check / bom-check (push) Has been cancelled
Verify that lv_conf_internal.h matches repository state / verify-conf-internal (push) Has been cancelled
Verify the widget property name / verify-property-name (push) Has been cancelled
Verify code formatting / verify-formatting (push) Has been cancelled
Compare file templates with file names / template-check (push) Has been cancelled
Build docs / build-and-deploy (push) Has been cancelled
Test API JSON generator / Test API JSON (push) Has been cancelled
Install LVGL using CMake / build-examples (push) Has been cancelled
Check Makefile / Build using Makefile (push) Has been cancelled
Check Makefile for UEFI / Build using Makefile for UEFI (push) Has been cancelled
Emulated Performance Test / ARM Emulated Benchmark - Script Check (scripts/perf/tests/benchmark_results_comment/test.sh) (push) Has been cancelled
Emulated Performance Test / ARM Emulated Benchmark - Script Check (scripts/perf/tests/filter_docker_logs/test.sh) (push) Has been cancelled
Emulated Performance Test / ARM Emulated Benchmark - Script Check (scripts/perf/tests/serialize_results/test.sh) (push) Has been cancelled
Emulated Performance Test / ARM Emulated Benchmark 32b - lv_conf_perf32b (push) Has been cancelled
Emulated Performance Test / ARM Emulated Benchmark 64b - lv_conf_perf64b (push) Has been cancelled
Emulated Performance Test / ARM Emulated Benchmark - Save PR Number (push) Has been cancelled
Hardware Performance Test / Hardware Performance Benchmark (push) Has been cancelled
Hardware Performance Test / HW Benchmark - Save PR Number (push) Has been cancelled
Performance Tests CI / Perf Tests OPTIONS_TEST_PERF_32B - Ubuntu (push) Has been cancelled
Performance Tests CI / Perf Tests OPTIONS_TEST_PERF_64B - Ubuntu (push) Has been cancelled
Port repo release update / run-release-branch-updater (push) Has been cancelled
Verify Font License / verify-font-license (push) Has been cancelled
Verify Kconfig / verify-kconfig (push) Has been cancelled
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
92 lines
3.0 KiB
YAML
92 lines
3.0 KiB
YAML
name: Comment PR with Hardware performance tests results
|
|
|
|
on:
|
|
workflow_run:
|
|
workflows: [Hardware Performance Test]
|
|
types:
|
|
- completed
|
|
|
|
concurrency:
|
|
group: ${{ github.event.workflow_run.event }}-${{ github.event.workflow_run.head_branch }}-${{ github.workflow }}
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
comment_pr:
|
|
if: |
|
|
github.event.workflow_run.conclusion == 'success' &&
|
|
github.event.workflow_run.event == 'pull_request'
|
|
|
|
runs-on: ubuntu-24.04
|
|
name: Comment PR with HW Performance tests results
|
|
steps:
|
|
- name: Download Results from PR
|
|
uses: dawidd6/action-download-artifact@v14
|
|
with:
|
|
workflow: perf_hardware.yml
|
|
path: artifacts
|
|
# The artifact needs to be downloaded from a PR run that comes from a forked repository
|
|
allow_forks: true
|
|
|
|
- name: Move artifacts to current folder
|
|
if: ${{ github.event.workflow_run.event == 'pull_request' }}
|
|
run: |
|
|
if [ ! -f "artifacts/pr_number/pr_number" ] || [ ! -f "artifacts/comment/comment.md" ]; then
|
|
echo "Required artifact files not found."
|
|
echo "This probably means this run was triggered by a label other than 'Run Benchmark on HW'."
|
|
echo "Exiting workflow."
|
|
echo "results_exist=false" >> $GITHUB_ENV
|
|
exit 0
|
|
fi
|
|
mv artifacts/pr_number/pr_number .
|
|
mv artifacts/comment/comment.md .
|
|
echo "results_exist=true" >> $GITHUB_ENV
|
|
|
|
- name: Install Dependencies
|
|
if: ${{env.results_exist == 'true'}}
|
|
run: |
|
|
sudo apt update -y
|
|
sudo apt install -y libfontconfig-dev
|
|
|
|
- name: Install EJ dispatcher tool
|
|
if: ${{env.results_exist == 'true'}}
|
|
run: |
|
|
cargo install ejlv
|
|
|
|
- name: Comment PR
|
|
if: ${{env.results_exist == 'true'}}
|
|
run: |
|
|
ejlv comment-pr \
|
|
--comment-path comment.md \
|
|
--pr-number $(cat pr_number) \
|
|
--gh-token "${{ secrets.GITHUB_TOKEN }}" \
|
|
--signature "hw_performance_tests"
|
|
|
|
- name: Remove trigger label
|
|
if: ${{env.results_exist == 'true'}}
|
|
uses: actions/github-script@v8
|
|
with:
|
|
script: |
|
|
const fs = require('fs');
|
|
const prPath = 'pr_number';
|
|
|
|
if (!fs.existsSync(prPath)) {
|
|
throw new Error('Error: pr_number not found! Exiting.');
|
|
}
|
|
|
|
const prNumber = Number(fs.readFileSync(prPath, 'utf8').trim());
|
|
|
|
try {
|
|
await github.rest.issues.removeLabel({
|
|
owner: context.repo.owner,
|
|
repo: context.repo.repo,
|
|
issue_number: prNumber,
|
|
name: 'Run benchmarks on HW'
|
|
});
|
|
console.log('Label removed successfully');
|
|
} catch (error) {
|
|
console.log('Label may have already been removed:', error.message);
|
|
}
|