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
This commit is contained in:
Samson 2024-02-29 09:24:38 +01:00 committed by GitHub
parent ffc9730a48
commit cd92a17c5e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 18 additions and 19 deletions

View file

@ -41,9 +41,9 @@ jobs:
ref: refs/pull/${{ github.event.issue.number || github.event.number }}/head ref: refs/pull/${{ github.event.issue.number || github.event.number }}/head
fetch-depth: 2 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.4
- name: Install taplo - name: Install taplo
uses: baptiste0928/cargo-install@v2 uses: baptiste0928/cargo-install@v3
with: with:
crate: taplo-cli crate: taplo-cli
locked: true locked: true
@ -52,7 +52,7 @@ jobs:
- name: Bootstrap dependencies - name: Bootstrap dependencies
run: sudo apt update && python3 ./mach bootstrap run: sudo apt update && python3 ./mach bootstrap
- name: Set up JDK 17 - name: Set up JDK 17
uses: actions/setup-java@v3 uses: actions/setup-java@v4
with: with:
java-version: '17' java-version: '17'
distribution: 'temurin' distribution: 'temurin'

View file

@ -83,7 +83,7 @@ jobs:
ref: refs/pull/${{ github.event.number }}/head ref: refs/pull/${{ github.event.number }}/head
fetch-depth: 2 # This is necessary for `test-tidy`. 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.4
- name: Set LIBCLANG_PATH env # needed for bindgen in mozangle - name: Set LIBCLANG_PATH env # needed for bindgen in mozangle
if: ${{ !inputs.upload }} # not needed on ubuntu 20.04 used for nightly if: ${{ !inputs.upload }} # not needed on ubuntu 20.04 used for nightly
run: echo "LIBCLANG_PATH=/usr/lib/llvm-14/lib" >> $GITHUB_ENV run: echo "LIBCLANG_PATH=/usr/lib/llvm-14/lib" >> $GITHUB_ENV
@ -91,11 +91,10 @@ jobs:
with: with:
python-version: '3.10' python-version: '3.10'
- name: Install taplo - name: Install taplo
uses: baptiste0928/cargo-install@v2 uses: baptiste0928/cargo-install@v3
with: with:
crate: taplo-cli crate: taplo-cli
locked: true locked: true
cache-key: ${{ inputs.upload && '20.04' || '22.04' }}
- name: Bootstrap Python - name: Bootstrap Python
run: python3 -m pip install --upgrade pip run: python3 -m pip install --upgrade pip
- name: Bootstrap dependencies - name: Bootstrap dependencies
@ -114,7 +113,7 @@ jobs:
run: ./mach test-scripts run: ./mach test-scripts
- name: Unit tests - name: Unit tests
if: ${{ inputs.unit-tests }} if: ${{ inputs.unit-tests }}
uses: nick-fields/retry@v2 uses: nick-fields/retry@v3
with: with:
timeout_minutes: 20 timeout_minutes: 20
max_attempts: 2 # https://github.com/servo/servo/issues/30683 max_attempts: 2 # https://github.com/servo/servo/issues/30683

View file

@ -77,9 +77,9 @@ jobs:
with: with:
ref: refs/pull/${{ github.event.number }}/head ref: refs/pull/${{ github.event.number }}/head
- name: Run sccache-cache - name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.3 uses: mozilla-actions/sccache-action@v0.0.4
- name: Install taplo - name: Install taplo
uses: baptiste0928/cargo-install@v2 uses: baptiste0928/cargo-install@v3
with: with:
crate: taplo-cli crate: taplo-cli
locked: true locked: true
@ -93,7 +93,7 @@ jobs:
python3 ./mach build --${{ inputs.profile }} python3 ./mach build --${{ inputs.profile }}
cp -r target/cargo-timings target/cargo-timings-macos cp -r target/cargo-timings target/cargo-timings-macos
- name: Smoketest - name: Smoketest
uses: nick-fields/retry@v2 uses: nick-fields/retry@v3
with: # See https://github.com/servo/servo/issues/30757 with: # See https://github.com/servo/servo/issues/30757
timeout_minutes: 5 timeout_minutes: 5
max_attempts: 2 max_attempts: 2
@ -102,7 +102,7 @@ jobs:
run: ./mach test-scripts run: ./mach test-scripts
- name: Unit tests - name: Unit tests
if: ${{ inputs.unit-tests }} if: ${{ inputs.unit-tests }}
uses: nick-fields/retry@v2 uses: nick-fields/retry@v3
with: with:
timeout_minutes: 20 # https://github.com/servo/servo/issues/30275 timeout_minutes: 20 # https://github.com/servo/servo/issues/30275
max_attempts: 3 # https://github.com/servo/servo/issues/30683 max_attempts: 3 # https://github.com/servo/servo/issues/30683
@ -110,7 +110,7 @@ jobs:
- name: Build mach package - name: Build mach package
run: python3 ./mach package --${{ inputs.profile }} run: python3 ./mach package --${{ inputs.profile }}
- name: Run DMG smoketest - name: Run DMG smoketest
uses: nick-fields/retry@v2 uses: nick-fields/retry@v3
with: # See https://github.com/servo/servo/issues/30757 with: # See https://github.com/servo/servo/issues/30757
timeout_minutes: 5 timeout_minutes: 5
max_attempts: 2 max_attempts: 2

View file

@ -48,7 +48,7 @@ jobs:
} >> $GITHUB_OUTPUT } >> $GITHUB_OUTPUT
- name: Configuration - name: Configuration
id: configuration id: configuration
uses: actions/github-script@v6 uses: actions/github-script@v7
with: with:
script: | script: |
// When triggered via a push try the `try` branch, search the last commit for a configuration object. // When triggered via a push try the `try` branch, search the last commit for a configuration object.

View file

@ -15,7 +15,7 @@ jobs:
try_string: ${{ steps.try_string.outputs.result }} try_string: ${{ steps.try_string.outputs.result }}
steps: steps:
- name: Collect Labels - name: Collect Labels
uses: actions/github-script@v6 uses: actions/github-script@v7
id: try_string id: try_string
with: with:
result-encoding: string result-encoding: string
@ -99,7 +99,7 @@ jobs:
} >> $GITHUB_OUTPUT } >> $GITHUB_OUTPUT
- name: Comment Run Start - name: Comment Run Start
if: ${{ steps.try_string.outputs.result }} if: ${{ steps.try_string.outputs.result }}
uses: actions/github-script@v6 uses: actions/github-script@v7
with: with:
result-encoding: string result-encoding: string
script: | script: |
@ -149,7 +149,7 @@ jobs:
steps: steps:
- name: Success - name: Success
if: ${{ !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') }} if: ${{ !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') }}
uses: actions/github-script@v6 uses: actions/github-script@v7
with: with:
script: | script: |
const url = context.serverUrl + const url = context.serverUrl +
@ -165,7 +165,7 @@ jobs:
}); });
- name: Failure - name: Failure
if: ${{ contains(needs.*.result, 'failure') }} if: ${{ contains(needs.*.result, 'failure') }}
uses: actions/github-script@v6 uses: actions/github-script@v7
with: with:
script: | script: |
const url = context.serverUrl + const url = context.serverUrl +

View file

@ -61,7 +61,7 @@ jobs:
- name: ccache - name: ccache
uses: hendrikmuhs/ccache-action@v1.2 uses: hendrikmuhs/ccache-action@v1.2
- name: Install taplo - name: Install taplo
uses: baptiste0928/cargo-install@v2 uses: baptiste0928/cargo-install@v3
with: with:
crate: taplo-cli crate: taplo-cli
locked: true locked: true
@ -88,7 +88,7 @@ jobs:
run: python mach smoketest --angle --${{ inputs.profile }} run: python mach smoketest --angle --${{ inputs.profile }}
- name: Unit tests - name: Unit tests
if: ${{ inputs.unit-tests }} if: ${{ inputs.unit-tests }}
uses: nick-fields/retry@v2 uses: nick-fields/retry@v3
with: with:
timeout_minutes: 30 timeout_minutes: 30
max_attempts: 3 # https://github.com/servo/servo/issues/30683 max_attempts: 3 # https://github.com/servo/servo/issues/30683