mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
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:
parent
d5c9e569bf
commit
1cc546c4fc
9 changed files with 144 additions and 133 deletions
16
.github/workflows/linux.yml
vendored
16
.github/workflows/linux.yml
vendored
|
@ -105,7 +105,9 @@ jobs:
|
|||
- name: Tidy
|
||||
run: python3 ./mach test-tidy --no-progress --all
|
||||
- name: Build (${{ inputs.profile }})
|
||||
run: python3 ./mach build --${{ inputs.profile }}
|
||||
run: |
|
||||
python3 ./mach build --${{ inputs.profile }}
|
||||
cp -r target/cargo-timings target/cargo-timings-linux
|
||||
- name: Smoketest
|
||||
run: xvfb-run python3 ./mach smoketest --${{ inputs.profile }}
|
||||
- name: Script tests
|
||||
|
@ -117,12 +119,10 @@ jobs:
|
|||
timeout_minutes: 20
|
||||
max_attempts: 2 # https://github.com/servo/servo/issues/30683
|
||||
command: python ./mach test-unit --${{ inputs.profile }}
|
||||
- name: Rename build timing
|
||||
run: cp -r target/cargo-timings target/cargo-timings-linux
|
||||
- name: Archive build timing
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: cargo-timings
|
||||
name: cargo-timings-linux
|
||||
# Using a wildcard here ensures that the archive includes the path.
|
||||
path: target/cargo-timings-*
|
||||
- name: Lockfile check
|
||||
|
@ -130,7 +130,7 @@ jobs:
|
|||
- name: Build mach package
|
||||
run: python3 ./mach package --${{ inputs.profile }}
|
||||
- name: Upload artifact for mach package
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: linux
|
||||
path: target/${{ inputs.profile }}/servo-tech-demo.tar.gz
|
||||
|
@ -147,9 +147,9 @@ jobs:
|
|||
- name: Build package for target
|
||||
run: tar -czf target.tar.gz target/${{ inputs.profile }}/servo resources
|
||||
- name: Upload artifact for target
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: release-binary
|
||||
name: ${{ inputs.profile }}-binary-linux
|
||||
path: target.tar.gz
|
||||
|
||||
wpt-2020:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue