aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorSamson <16504129+sagudev@users.noreply.github.com>2024-02-29 09:24:38 +0100
committerGitHub <noreply@github.com>2024-02-29 08:24:38 +0000
commitcd92a17c5e1b6c7e2cb48ae83021f78a668343e2 (patch)
tree125e953c3e586e4c3803daffc27a661d98a43edf /.github
parentffc9730a484d3b30c9c1b8ef3366b715e6808bcd (diff)
downloadservo-cd92a17c5e1b6c7e2cb48ae83021f78a668343e2.tar.gz
servo-cd92a17c5e1b6c7e2cb48ae83021f78a668343e2.zip
ci: Update remaining GitHub actions to versions using Node.js 20 (#31450)
* Update sccache action * Update baptiste0928/cargo-install * Update github-script * Update actions/setup-java * Update nick-fields/retry
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/android.yml6
-rw-r--r--.github/workflows/linux.yml7
-rw-r--r--.github/workflows/mac.yml10
-rw-r--r--.github/workflows/try.yml2
-rw-r--r--.github/workflows/try_labels.yml8
-rw-r--r--.github/workflows/windows.yml4
6 files changed, 18 insertions, 19 deletions
diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml
index fe9c27e95d4..469b94256c1 100644
--- a/.github/workflows/android.yml
+++ b/.github/workflows/android.yml
@@ -41,9 +41,9 @@ jobs:
ref: refs/pull/${{ github.event.issue.number || github.event.number }}/head
fetch-depth: 2
- name: Run sccache-cache
- uses: mozilla-actions/sccache-action@v0.0.3
+ uses: mozilla-actions/sccache-action@v0.0.4
- name: Install taplo
- uses: baptiste0928/cargo-install@v2
+ uses: baptiste0928/cargo-install@v3
with:
crate: taplo-cli
locked: true
@@ -52,7 +52,7 @@ jobs:
- name: Bootstrap dependencies
run: sudo apt update && python3 ./mach bootstrap
- name: Set up JDK 17
- uses: actions/setup-java@v3
+ uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml
index 9d0fdb18c88..158ddee053b 100644
--- a/.github/workflows/linux.yml
+++ b/.github/workflows/linux.yml
@@ -83,7 +83,7 @@ jobs:
ref: refs/pull/${{ github.event.number }}/head
fetch-depth: 2 # This is necessary for `test-tidy`.
- name: Run sccache-cache
- uses: mozilla-actions/sccache-action@v0.0.3
+ uses: mozilla-actions/sccache-action@v0.0.4
- name: Set LIBCLANG_PATH env # needed for bindgen in mozangle
if: ${{ !inputs.upload }} # not needed on ubuntu 20.04 used for nightly
run: echo "LIBCLANG_PATH=/usr/lib/llvm-14/lib" >> $GITHUB_ENV
@@ -91,11 +91,10 @@ jobs:
with:
python-version: '3.10'
- name: Install taplo
- uses: baptiste0928/cargo-install@v2
+ uses: baptiste0928/cargo-install@v3
with:
crate: taplo-cli
locked: true
- cache-key: ${{ inputs.upload && '20.04' || '22.04' }}
- name: Bootstrap Python
run: python3 -m pip install --upgrade pip
- name: Bootstrap dependencies
@@ -114,7 +113,7 @@ jobs:
run: ./mach test-scripts
- name: Unit tests
if: ${{ inputs.unit-tests }}
- uses: nick-fields/retry@v2
+ uses: nick-fields/retry@v3
with:
timeout_minutes: 20
max_attempts: 2 # https://github.com/servo/servo/issues/30683
diff --git a/.github/workflows/mac.yml b/.github/workflows/mac.yml
index dd78f526bfb..c48dab55873 100644
--- a/.github/workflows/mac.yml
+++ b/.github/workflows/mac.yml
@@ -77,9 +77,9 @@ jobs:
with:
ref: refs/pull/${{ github.event.number }}/head
- name: Run sccache-cache
- uses: mozilla-actions/sccache-action@v0.0.3
+ uses: mozilla-actions/sccache-action@v0.0.4
- name: Install taplo
- uses: baptiste0928/cargo-install@v2
+ uses: baptiste0928/cargo-install@v3
with:
crate: taplo-cli
locked: true
@@ -93,7 +93,7 @@ jobs:
python3 ./mach build --${{ inputs.profile }}
cp -r target/cargo-timings target/cargo-timings-macos
- name: Smoketest
- uses: nick-fields/retry@v2
+ uses: nick-fields/retry@v3
with: # See https://github.com/servo/servo/issues/30757
timeout_minutes: 5
max_attempts: 2
@@ -102,7 +102,7 @@ jobs:
run: ./mach test-scripts
- name: Unit tests
if: ${{ inputs.unit-tests }}
- uses: nick-fields/retry@v2
+ uses: nick-fields/retry@v3
with:
timeout_minutes: 20 # https://github.com/servo/servo/issues/30275
max_attempts: 3 # https://github.com/servo/servo/issues/30683
@@ -110,7 +110,7 @@ jobs:
- name: Build mach package
run: python3 ./mach package --${{ inputs.profile }}
- name: Run DMG smoketest
- uses: nick-fields/retry@v2
+ uses: nick-fields/retry@v3
with: # See https://github.com/servo/servo/issues/30757
timeout_minutes: 5
max_attempts: 2
diff --git a/.github/workflows/try.yml b/.github/workflows/try.yml
index 2834565e26d..a8fa298c01f 100644
--- a/.github/workflows/try.yml
+++ b/.github/workflows/try.yml
@@ -48,7 +48,7 @@ jobs:
} >> $GITHUB_OUTPUT
- name: Configuration
id: configuration
- uses: actions/github-script@v6
+ uses: actions/github-script@v7
with:
script: |
// When triggered via a push try the `try` branch, search the last commit for a configuration object.
diff --git a/.github/workflows/try_labels.yml b/.github/workflows/try_labels.yml
index 1beae2a9d51..f7e8124e09a 100644
--- a/.github/workflows/try_labels.yml
+++ b/.github/workflows/try_labels.yml
@@ -15,7 +15,7 @@ jobs:
try_string: ${{ steps.try_string.outputs.result }}
steps:
- name: Collect Labels
- uses: actions/github-script@v6
+ uses: actions/github-script@v7
id: try_string
with:
result-encoding: string
@@ -99,7 +99,7 @@ jobs:
} >> $GITHUB_OUTPUT
- name: Comment Run Start
if: ${{ steps.try_string.outputs.result }}
- uses: actions/github-script@v6
+ uses: actions/github-script@v7
with:
result-encoding: string
script: |
@@ -149,7 +149,7 @@ jobs:
steps:
- name: Success
if: ${{ !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') }}
- uses: actions/github-script@v6
+ uses: actions/github-script@v7
with:
script: |
const url = context.serverUrl +
@@ -165,7 +165,7 @@ jobs:
});
- name: Failure
if: ${{ contains(needs.*.result, 'failure') }}
- uses: actions/github-script@v6
+ uses: actions/github-script@v7
with:
script: |
const url = context.serverUrl +
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
index 2aa6b0c5d50..50c351d91d0 100644
--- a/.github/workflows/windows.yml
+++ b/.github/workflows/windows.yml
@@ -61,7 +61,7 @@ jobs:
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2
- name: Install taplo
- uses: baptiste0928/cargo-install@v2
+ uses: baptiste0928/cargo-install@v3
with:
crate: taplo-cli
locked: true
@@ -88,7 +88,7 @@ jobs:
run: python mach smoketest --angle --${{ inputs.profile }}
- name: Unit tests
if: ${{ inputs.unit-tests }}
- uses: nick-fields/retry@v2
+ uses: nick-fields/retry@v3
with:
timeout_minutes: 30
max_attempts: 3 # https://github.com/servo/servo/issues/30683