Collect build timings on GitHub CI

This will help to investigate slow builds on GitHub.
This commit is contained in:
Martin Robinson 2023-06-21 14:43:11 +02:00
parent befb472c9d
commit e679e1f793
5 changed files with 44 additions and 19 deletions

View file

@ -78,6 +78,14 @@ jobs:
- name: Unit tests
if: ${{ inputs.unit-tests }}
run: python3 ./mach test-unit --release --with-${{ env.LAYOUT }}
- name: Rename build timing
run: cp -r target/cargo-timings target/cargo-timings-linux-${{ env.LAYOUT }}
- name: Archive build timing
uses: actions/upload-artifact@v3
with:
name: cargo-timings
# Using a wildcard here ensures that the archive includes the path.
path: target/cargo-timings-*-${{ env.LAYOUT }}
- name: Lockfile check
run: ./etc/ci/lockfile_changed.sh
- name: Package

View file

@ -70,6 +70,14 @@ jobs:
run: python3 ./mach package --release
- name: Package smoketest
run: ./etc/ci/macos_package_smoketest.sh target/release/servo-tech-demo.dmg
- name: Rename build timing
run: cp -r target/cargo-timings target/cargo-timings-macos-${{ env.LAYOUT }}
- name: Archive build timing
uses: actions/upload-artifact@v3
with:
name: cargo-timings
# Using a wildcard here ensures that the archive includes the path.
path: target/cargo-timings-*-${{ env.LAYOUT }}
- name: Upload package
uses: actions/upload-artifact@v3
with:

View file

@ -72,6 +72,14 @@ jobs:
- name: Unit tests
if: ${{ inputs.unit-tests }}
run: python mach test-unit --release --with-${{ env.LAYOUT }}
- name: Rename build timing
run: cp C:\a\servo\servo\target\cargo-timings C:\a\servo\servo\target\cargo-timings-windows-${{ env.LAYOUT }} -Recurse
- name: Archive build timing
uses: actions/upload-artifact@v3
with:
name: cargo-timings
# Using a wildcard here ensures that the archive includes the path.
path: target/cargo-timings-*-${{ env.LAYOUT }}
- name: Package
run: python mach package --release
- name: Upload Package