mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 01:29:17 +00:00
CI: Run benchmarks on macOS as well
This introduces a matrix for the js-benchmarks workflow and runs both the Linux x86_64 and macOS arm64 JS repl builds against our benchmarks repository.
This commit is contained in:
parent
4600f9a5b0
commit
e6f674fb7f
Notes:
github-actions[bot]
2025-04-14 12:17:51 +00:00
Author: https://github.com/gmta
Commit: e6f674fb7f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4350
2 changed files with 25 additions and 9 deletions
8
.github/workflows/js-artifacts.yml
vendored
8
.github/workflows/js-artifacts.yml
vendored
|
@ -18,15 +18,15 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os_name: ['Linux']
|
os_name: ['Linux']
|
||||||
os: [ubuntu-24.04]
|
os: ['ubuntu-24.04']
|
||||||
arch: ['x86_64']
|
arch: ['x86_64']
|
||||||
package_type: [Linux-x86_64]
|
package_type: ['Linux-x86_64']
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- os_name: 'macOS'
|
- os_name: 'macOS'
|
||||||
os: macos-15
|
os: 'macos-15'
|
||||||
arch: 'arm64'
|
arch: 'arm64'
|
||||||
package_type: macOS-universal2
|
package_type: 'macOS-universal2'
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ matrix.os_name }}
|
group: ${{ github.workflow }}-${{ matrix.os_name }}
|
||||||
|
|
26
.github/workflows/js-benchmarks.yml
vendored
26
.github/workflows/js-benchmarks.yml
vendored
|
@ -9,11 +9,24 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
js-benchmarks:
|
js-benchmarks:
|
||||||
runs-on: js-benchmarks-runner
|
runs-on: ['js-benchmarks', 'self-hosted', '${{ matrix.os }}']
|
||||||
if: ${{ github.repository == 'LadybirdBrowser/ladybird' && github.event.workflow_run.conclusion == 'success' }}
|
if: ${{ github.repository == 'LadybirdBrowser/ladybird' && github.event.workflow_run.conclusion == 'success' }}
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
os_name: ['Linux']
|
||||||
|
os: ['ubuntu-24.04-internal']
|
||||||
|
arch: ['x86_64']
|
||||||
|
package_type: ['Linux-x86_64']
|
||||||
|
|
||||||
|
include:
|
||||||
|
- os_name: 'macOS'
|
||||||
|
os: 'macos-15'
|
||||||
|
arch: 'arm64'
|
||||||
|
package_type: 'macOS-universal2'
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: js-benchmarks
|
group: ${{ github.workflow }}-${{ matrix.os_name }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: 'Checkout LadybirdBrowser/js-benchmarks'
|
- name: 'Checkout LadybirdBrowser/js-benchmarks'
|
||||||
|
@ -23,6 +36,7 @@ jobs:
|
||||||
path: js-benchmarks
|
path: js-benchmarks
|
||||||
|
|
||||||
- name: 'Install dependencies'
|
- name: 'Install dependencies'
|
||||||
|
if: ${{ matrix.os_name == 'Linux' }}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
|
@ -36,14 +50,14 @@ jobs:
|
||||||
with:
|
with:
|
||||||
workflow: js-artifacts.yml
|
workflow: js-artifacts.yml
|
||||||
commit: ${{ github.sha }}
|
commit: ${{ github.sha }}
|
||||||
name: ladybird-js-Linux-x86_64
|
name: ladybird-js-${{ matrix.package_type }}
|
||||||
path: js-repl
|
path: js-repl
|
||||||
|
|
||||||
- name: 'Extract JS repl'
|
- name: 'Extract JS repl'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
cd js-repl
|
cd js-repl
|
||||||
tar -xvzf ladybird-js-Linux-x86_64.tar.gz
|
tar -xvzf ladybird-js-${{ matrix.os_name }}-${{ matrix.arch }}.tar.gz
|
||||||
|
|
||||||
- name: 'Run the JS benchmarks'
|
- name: 'Run the JS benchmarks'
|
||||||
shell: bash
|
shell: bash
|
||||||
|
@ -57,7 +71,7 @@ jobs:
|
||||||
- name: 'Save results as an artifact'
|
- name: 'Save results as an artifact'
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: js-benchmarks-results
|
name: js-benchmarks-results-${{ matrix.os_name }}-${{ matrix.arch }}
|
||||||
path: js-benchmarks/results.json
|
path: js-benchmarks/results.json
|
||||||
retention-days: 90
|
retention-days: 90
|
||||||
|
|
||||||
|
@ -66,6 +80,8 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
echo -n '{ \
|
echo -n '{ \
|
||||||
"commit": "${{ github.sha }}", \
|
"commit": "${{ github.sha }}", \
|
||||||
|
"os_name": "${{ matrix.os_name }}", \
|
||||||
|
"artifact": "js-benchmarks-results-${{ matrix.os_name }}-${{ matrix.arch }}" \
|
||||||
}' > request.json
|
}' > request.json
|
||||||
curl \
|
curl \
|
||||||
--fail \
|
--fail \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue