mirror of
https://github.com/servo/servo.git
synced 2025-09-29 16:19:14 +01:00
Use --locked when building in CI (#31720)
Thus the build will immediately fail if a PR modifies Cargo.toml but forgets to include the changes in Cargo.lock This was previously checked by lockfile_changed.sh after building normally, wasting resources.
This commit is contained in:
parent
ecabdc2583
commit
ea62a5e24f
5 changed files with 4 additions and 19 deletions
4
.github/workflows/linux.yml
vendored
4
.github/workflows/linux.yml
vendored
|
@ -105,7 +105,7 @@ jobs:
|
|||
run: python3 ./mach test-tidy --no-progress --all
|
||||
- name: Build (${{ inputs.profile }})
|
||||
run: |
|
||||
python3 ./mach build --${{ inputs.profile }}
|
||||
python3 ./mach build --locked --${{ inputs.profile }}
|
||||
cp -r target/cargo-timings target/cargo-timings-linux
|
||||
- name: Smoketest
|
||||
run: xvfb-run python3 ./mach smoketest --${{ inputs.profile }}
|
||||
|
@ -124,8 +124,6 @@ jobs:
|
|||
name: cargo-timings-linux
|
||||
# Using a wildcard here ensures that the archive includes the path.
|
||||
path: target/cargo-timings-*
|
||||
- name: Lockfile check
|
||||
run: ./etc/ci/lockfile_changed.sh
|
||||
- name: Build mach package
|
||||
run: python3 ./mach package --${{ inputs.profile }}
|
||||
- name: Upload artifact for mach package
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue