ci: Switch to version 4 of GitHub artifact actions (#31357)

* ci: Switch to version 4 of GitHub artifact actions

This switches to version 4 of the GitHub artifact actions, which
requires producing a single artifact per job and adding merge steps. In
addition, the names of artifacts are standardized:

- Build: <profile>-binary-<platform>
- Full WPT results (only on failure): wpt-full-logs-<platform>-<layout>
- Filtered WPT results (only on failure): wpt-filtered-logs-<platform>-<layout>

* Delete merged build timings and combine with Result job

* Always archives logs even after test failures

* Correct the name of the log files for WPT import
This commit is contained in:
Martin Robinson 2024-02-17 17:59:43 +01:00 committed by GitHub
parent d5c9e569bf
commit 1cc546c4fc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 144 additions and 133 deletions

View file

@ -81,7 +81,9 @@ jobs:
python mach bootstrap-gstreamer
cargo install --path support/crown
- name: Build (${{ inputs.profile }})
run: python mach build --${{ inputs.profile }}
run: |
python mach build --${{ inputs.profile }}
cp C:\a\servo\servo\target\cargo-timings C:\a\servo\servo\target\cargo-timings-windows -Recurse
- name: Copy resources
run: cp D:\a\servo\servo\resources C:\a\servo\servo -Recurse
- name: Smoketest
@ -93,18 +95,16 @@ jobs:
timeout_minutes: 30
max_attempts: 3 # https://github.com/servo/servo/issues/30683
command: python mach test-unit --${{ inputs.profile }} -- -- --test-threads=1
- name: Rename build timing
run: cp C:\a\servo\servo\target\cargo-timings C:\a\servo\servo\target\cargo-timings-windows -Recurse
- name: Archive build timing
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: cargo-timings
name: cargo-timings-windows
# Using a wildcard here ensures that the archive includes the path.
path: C:\\a\\servo\\servo\\target\\cargo-timings-*
- name: Build mach package
run: python mach package --${{ inputs.profile }}
- name: Upload artifact for mach package
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: win
# These files are available