WIP: Rust score calculation #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: RUST Nightly job to update internal WPT dashboard | |
| on: | |
| pull_request: | |
| # Run an 2.5 hours after servo nightly job | |
| schedule: | |
| - cron: '0 8 * * *' | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| pages: write | |
| id-token: write | |
| env: | |
| RUST_BACKTRACE: 1 | |
| SHELL: /bin/bash | |
| jobs: | |
| wpt-for-layout-2020: | |
| uses: ./.github/workflows/run-wpt.yml | |
| with: | |
| layout-engine: 2020 | |
| artifact-name: wpt-chunks-2020 | |
| process-new-run: | |
| name: Process all chunks and update metrics | |
| runs-on: ubuntu-22.04 | |
| needs: | |
| - wpt-for-layout-2020 | |
| steps: | |
| - name: Checkout dashboard repo | |
| uses: actions/checkout@v3 | |
| with: | |
| ref: main | |
| - name: Download wpt results for layout 2020 | |
| uses: actions/download-artifact@v4 | |
| with: | |
| path: wpt-chunks-2020 | |
| pattern: wpt-chunks-2020-* | |
| merge-multiple: true | |
| - name: Install wpt cli | |
| run: cargo install [email protected] | |
| - name: Process new test results | |
| run: | | |
| CURRENT_DATE=$(date +"%Y-%m-%d") | |
| mkdir -p runs-2020 | |
| wpt merge --in ./wpt-chunks-2020 --out ./merged-wpt-report.json | |
| wpt convert --in ./merged-wpt-report.json --out ./servo-score-report.json --js-sort | |
| xz -z ./servo-score-report.json -e | |
| cp ./servo-score-report.json.xz ./runs-2020/$CURRENT_DATE.json.xz | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: servo-score-report.json.xz | |
| path: ./servo-score-report.json.xz | |
| compression: 0 | |
| # git config user.name github-actions | |
| # git config user.email [email protected] | |
| # git add runs-2020/${CURRENT_DATE}.xz | |
| # git commit -m "Add runs for $CURRENT_DATE" | |
| # git push | |
| # - name: Setup Pages | |
| # uses: actions/configure-pages@v3 | |
| # - name: Upload Pages artifact | |
| # uses: actions/upload-pages-artifact@v3 | |
| # with: | |
| # path: 'site' | |
| # - name: Deploy to GitHub Pages | |
| # id: deployment | |
| # uses: actions/deploy-pages@v4 |