mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
ci: Switch to actions/checkout@v4 (#31379)
This change also removes the use of `fetch-depth: 2` where it isn't necessary. These were likely copy-and-pasted from other workflows.
This commit is contained in:
parent
8faf6839d3
commit
2946fa83ec
11 changed files with 20 additions and 38 deletions
4
.github/workflows/android.yml
vendored
4
.github/workflows/android.yml
vendored
|
@ -29,13 +29,13 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
arch: ['armv7-linux-androideabi', 'i686-linux-android']
|
arch: ['armv7-linux-androideabi', 'i686-linux-android']
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
if: github.event_name != 'issue_comment' && github.event_name != 'pull_request_target'
|
if: github.event_name != 'issue_comment' && github.event_name != 'pull_request_target'
|
||||||
with:
|
with:
|
||||||
fetch-depth: 2
|
fetch-depth: 2
|
||||||
# This is necessary to checkout the pull request if this run was triggered
|
# This is necessary to checkout the pull request if this run was triggered
|
||||||
# via an `issue_comment` action on a pull request.
|
# via an `issue_comment` action on a pull request.
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
if: github.event_name == 'issue_comment' || github.event_name == 'pull_request_target'
|
if: github.event_name == 'issue_comment' || github.event_name == 'pull_request_target'
|
||||||
with:
|
with:
|
||||||
ref: refs/pull/${{ github.event.issue.number || github.event.number }}/head
|
ref: refs/pull/${{ github.event.issue.number || github.event.number }}/head
|
||||||
|
|
4
.github/workflows/docs.yml
vendored
4
.github/workflows/docs.yml
vendored
|
@ -12,9 +12,7 @@ jobs:
|
||||||
name: Upload docs to GitHub Pages
|
name: Upload docs to GitHub Pages
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
|
||||||
fetch-depth: 2
|
|
||||||
- name: Bootstrap
|
- name: Bootstrap
|
||||||
run: |
|
run: |
|
||||||
python3 -m pip install --upgrade pip
|
python3 -m pip install --upgrade pip
|
||||||
|
|
11
.github/workflows/linux-wpt.yml
vendored
11
.github/workflows/linux-wpt.yml
vendored
|
@ -36,17 +36,14 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
chunk_id: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
|
chunk_id: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
if: github.event_name != 'pull_request_target'
|
if: github.event_name != 'pull_request_target'
|
||||||
with:
|
|
||||||
fetch-depth: 2
|
|
||||||
# This is necessary to checkout the pull request if this run was triggered via a
|
# This is necessary to checkout the pull request if this run was triggered via a
|
||||||
# `pull_request_target` event.
|
# `pull_request_target` event.
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
if: github.event_name == 'pull_request_target'
|
if: github.event_name == 'pull_request_target'
|
||||||
with:
|
with:
|
||||||
ref: refs/pull/${{ github.event.number }}/head
|
ref: refs/pull/${{ github.event.number }}/head
|
||||||
fetch-depth: 2
|
|
||||||
- uses: actions/download-artifact@v4
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ inputs.profile }}-binary-linux
|
name: ${{ inputs.profile }}-binary-linux
|
||||||
|
@ -109,10 +106,8 @@ jobs:
|
||||||
name: wpt-full-logs-linux-${{ inputs.wpt-layout }}
|
name: wpt-full-logs-linux-${{ inputs.wpt-layout }}
|
||||||
pattern: wpt-full-logs-linux-${{ inputs.wpt-layout }}-*
|
pattern: wpt-full-logs-linux-${{ inputs.wpt-layout }}-*
|
||||||
delete-merged: true
|
delete-merged: true
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
if: ${{ !cancelled() && !inputs.wpt-sync-from-upstream }}
|
if: ${{ !cancelled() && !inputs.wpt-sync-from-upstream }}
|
||||||
with:
|
|
||||||
fetch-depth: 2
|
|
||||||
- uses: actions/download-artifact@v4
|
- uses: actions/download-artifact@v4
|
||||||
if: ${{ !cancelled() && !inputs.wpt-sync-from-upstream }}
|
if: ${{ !cancelled() && !inputs.wpt-sync-from-upstream }}
|
||||||
with:
|
with:
|
||||||
|
|
8
.github/workflows/linux.yml
vendored
8
.github/workflows/linux.yml
vendored
|
@ -71,17 +71,17 @@ jobs:
|
||||||
# runners which still use 20.04.
|
# runners which still use 20.04.
|
||||||
runs-on: ubuntu-${{ inputs.upload && '20.04' || '22.04' }}
|
runs-on: ubuntu-${{ inputs.upload && '20.04' || '22.04' }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
if: github.event_name != 'pull_request_target'
|
if: github.event_name != 'pull_request_target'
|
||||||
with:
|
with:
|
||||||
fetch-depth: 2
|
fetch-depth: 2 # This is necessary for `test-tidy`.
|
||||||
# This is necessary to checkout the pull request if this run was triggered via a
|
# This is necessary to checkout the pull request if this run was triggered via a
|
||||||
# `pull_request_target` event.
|
# `pull_request_target` event.
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
if: github.event_name == 'pull_request_target'
|
if: github.event_name == 'pull_request_target'
|
||||||
with:
|
with:
|
||||||
ref: refs/pull/${{ github.event.number }}/head
|
ref: refs/pull/${{ github.event.number }}/head
|
||||||
fetch-depth: 2
|
fetch-depth: 2 # This is necessary for `test-tidy`.
|
||||||
- name: Run sccache-cache
|
- name: Run sccache-cache
|
||||||
uses: mozilla-actions/sccache-action@v0.0.3
|
uses: mozilla-actions/sccache-action@v0.0.3
|
||||||
- name: Set LIBCLANG_PATH env # needed for bindgen in mozangle
|
- name: Set LIBCLANG_PATH env # needed for bindgen in mozangle
|
||||||
|
|
7
.github/workflows/mac-wpt.yml
vendored
7
.github/workflows/mac-wpt.yml
vendored
|
@ -30,17 +30,14 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
chunk_id: [1, 2, 3, 4, 5]
|
chunk_id: [1, 2, 3, 4, 5]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
if: github.event_name != 'pull_request_target'
|
if: github.event_name != 'pull_request_target'
|
||||||
with:
|
|
||||||
fetch-depth: 2
|
|
||||||
# This is necessary to checkout the pull request if this run was triggered via a
|
# This is necessary to checkout the pull request if this run was triggered via a
|
||||||
# `pull_request_target` event.
|
# `pull_request_target` event.
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
if: github.event_name == 'pull_request_target'
|
if: github.event_name == 'pull_request_target'
|
||||||
with:
|
with:
|
||||||
ref: refs/pull/${{ github.event.number }}/head
|
ref: refs/pull/${{ github.event.number }}/head
|
||||||
fetch-depth: 2
|
|
||||||
- uses: actions/download-artifact@v4
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ inputs.profile }}-binary-macos
|
name: ${{ inputs.profile }}-binary-macos
|
||||||
|
|
7
.github/workflows/mac.yml
vendored
7
.github/workflows/mac.yml
vendored
|
@ -68,17 +68,14 @@ jobs:
|
||||||
- name: Kill XProtectBehaviorService
|
- name: Kill XProtectBehaviorService
|
||||||
run: |
|
run: |
|
||||||
echo Killing XProtect.; sudo pkill -9 XProtect >/dev/null || true;
|
echo Killing XProtect.; sudo pkill -9 XProtect >/dev/null || true;
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
if: github.event_name != 'pull_request_target'
|
if: github.event_name != 'pull_request_target'
|
||||||
with:
|
|
||||||
fetch-depth: 2
|
|
||||||
# This is necessary to checkout the pull request if this run was triggered via a
|
# This is necessary to checkout the pull request if this run was triggered via a
|
||||||
# `pull_request_target` event.
|
# `pull_request_target` event.
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
if: github.event_name == 'pull_request_target'
|
if: github.event_name == 'pull_request_target'
|
||||||
with:
|
with:
|
||||||
ref: refs/pull/${{ github.event.number }}/head
|
ref: refs/pull/${{ github.event.number }}/head
|
||||||
fetch-depth: 2
|
|
||||||
- name: Run sccache-cache
|
- name: Run sccache-cache
|
||||||
uses: mozilla-actions/sccache-action@v0.0.3
|
uses: mozilla-actions/sccache-action@v0.0.3
|
||||||
- name: Install taplo
|
- name: Install taplo
|
||||||
|
|
|
@ -17,7 +17,7 @@ jobs:
|
||||||
cd servo
|
cd servo
|
||||||
git fetch origin pull/${{ github.event.pull_request.number}}/head:pr --depth ${{ env.PR_FETCH_DEPTH }}
|
git fetch origin pull/${{ github.event.pull_request.number}}/head:pr --depth ${{ env.PR_FETCH_DEPTH }}
|
||||||
- name: Check out wpt
|
- name: Check out wpt
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
path: wpt
|
path: wpt
|
||||||
repository: 'web-platform-tests/wpt'
|
repository: 'web-platform-tests/wpt'
|
||||||
|
|
4
.github/workflows/scheduled-wpt-import.yml
vendored
4
.github/workflows/scheduled-wpt-import.yml
vendored
|
@ -28,9 +28,7 @@ jobs:
|
||||||
- "linux"
|
- "linux"
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
|
||||||
fetch-depth: 2
|
|
||||||
- uses: actions/download-artifact@v4
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: wpt-full-logs-linux-layout-2013
|
name: wpt-full-logs-linux-layout-2013
|
||||||
|
|
2
.github/workflows/try.yml
vendored
2
.github/workflows/try.yml
vendored
|
@ -32,7 +32,7 @@ jobs:
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.10'
|
python-version: '3.10'
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
sparse-checkout: |
|
sparse-checkout: |
|
||||||
|
|
3
.github/workflows/try_labels.yml
vendored
3
.github/workflows/try_labels.yml
vendored
|
@ -80,12 +80,11 @@ jobs:
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.10'
|
python-version: '3.10'
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
# This is necessary to checkout the pull request if this run was triggered
|
# This is necessary to checkout the pull request if this run was triggered
|
||||||
# via an `label` action on a pull request.
|
# via an `label` action on a pull request.
|
||||||
ref: refs/pull/${{ github.event.number }}/head
|
ref: refs/pull/${{ github.event.number }}/head
|
||||||
fetch-depth: 1
|
|
||||||
sparse-checkout: |
|
sparse-checkout: |
|
||||||
python/servo/try_parser.py
|
python/servo/try_parser.py
|
||||||
sparse-checkout-cone-mode: false
|
sparse-checkout-cone-mode: false
|
||||||
|
|
6
.github/workflows/windows.yml
vendored
6
.github/workflows/windows.yml
vendored
|
@ -49,13 +49,11 @@ jobs:
|
||||||
name: Windows Build
|
name: Windows Build
|
||||||
runs-on: windows-2022
|
runs-on: windows-2022
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
if: github.event_name != 'pull_request_target'
|
if: github.event_name != 'pull_request_target'
|
||||||
with:
|
|
||||||
fetch-depth: 2
|
|
||||||
# This is necessary to checkout the pull request if this run was triggered via a
|
# This is necessary to checkout the pull request if this run was triggered via a
|
||||||
# `pull_request_target` event.
|
# `pull_request_target` event.
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
if: github.event_name == 'pull_request_target'
|
if: github.event_name == 'pull_request_target'
|
||||||
with:
|
with:
|
||||||
ref: refs/pull/${{ github.event.number }}/head
|
ref: refs/pull/${{ github.event.number }}/head
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue