From e26de40109f6c117317b5f2adf90fae6c2e80de3 Mon Sep 17 00:00:00 2001 From: mlevesquedion Date: Wed, 3 Jan 2024 12:41:32 -0500 Subject: [PATCH] Bump action versions to silence node12 warning (#1901) I noticed that some of our actions produce a warning when they run, e.g.: ``` The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, llvm/actions/install-ninja@55d844821959226fab4911f96f37071c1d4c3268. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/ ``` This isn't a huge deal but it's unnecessary noise and it's probably best to use more recent versions of the actions we use anyway. So I'm bumping the `checkout` action (which is developed by GitHub) to the latest version (v4), and I'm bumping the LLVM `install-ninja` action to [the commit](https://github.com/llvm/actions/commit/6a57890d0e3f9f35dfc72e7e48bc5e1e527cdd6c) where the `node` version was bumped to 16. --- .github/actions/setup-build/action.yml | 4 ++-- .github/workflows/buildAndTestBazel.yml | 2 +- .github/workflows/buildAndTestCMake.yml | 2 +- .github/workflows/lint.yml | 6 +++--- .github/workflows/markdown_lint.yml | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/actions/setup-build/action.yml b/.github/actions/setup-build/action.yml index a76b82092c2..af63e62d643 100644 --- a/.github/actions/setup-build/action.yml +++ b/.github/actions/setup-build/action.yml @@ -27,7 +27,7 @@ runs: steps: # Checkout llvm at version specified in input argument. - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: repository: llvm/llvm-project ref: ${{ inputs.llvm-version }} @@ -36,7 +36,7 @@ runs: # Get ninja for cmake build. - name: Install Ninja - uses: llvm/actions/install-ninja@55d844821959226fab4911f96f37071c1d4c3268 + uses: llvm/actions/install-ninja@6a57890d0e3f9f35dfc72e7e48bc5e1e527cdd6c # Get LLD - Improves build speed on Linux - name: Install LLD diff --git a/.github/workflows/buildAndTestBazel.yml b/.github/workflows/buildAndTestBazel.yml index 8a5a94bb9af..6fb0b21db5d 100644 --- a/.github/workflows/buildAndTestBazel.yml +++ b/.github/workflows/buildAndTestBazel.yml @@ -40,7 +40,7 @@ jobs: steps: - name: Checkout StableHLO - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Validate LLVM Commit run: | diff --git a/.github/workflows/buildAndTestCMake.yml b/.github/workflows/buildAndTestCMake.yml index 3afa1086c3b..fdb8e42e65b 100644 --- a/.github/workflows/buildAndTestCMake.yml +++ b/.github/workflows/buildAndTestCMake.yml @@ -48,7 +48,7 @@ jobs: steps: - name: Checkout StableHLO - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Get LLVM Version id: llvm-version diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 624cc6d2fd5..d5980f28f8c 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -32,7 +32,7 @@ jobs: runs-on: ${{ github.repository == 'openxla/stablehlo' && 'ubuntu-22.04-64core' || 'ubuntu-22.04' }} steps: - name: Checking out repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Run clang-format run: | @@ -45,7 +45,7 @@ jobs: runs-on: ${{ github.repository == 'openxla/stablehlo' && 'ubuntu-22.04-64core' || 'ubuntu-22.04' }} steps: - name: Checking out repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Run Whitespace Checks run: | @@ -57,7 +57,7 @@ jobs: runs-on: ${{ github.repository == 'openxla/stablehlo' && 'ubuntu-22.04-64core' || 'ubuntu-22.04' }} steps: - name: Checking out repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Run Version Checks run: | diff --git a/.github/workflows/markdown_lint.yml b/.github/workflows/markdown_lint.yml index 3bff63b7a7c..aae1f140ace 100644 --- a/.github/workflows/markdown_lint.yml +++ b/.github/workflows/markdown_lint.yml @@ -29,7 +29,7 @@ jobs: runs-on: ${{ github.repository == 'openxla/stablehlo' && 'ubuntu-22.04-64core' || 'ubuntu-22.04' }} steps: - name: Checking out repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Running markdownlint run: | ./build_tools/github_actions/lint_markdown.sh "./**/*.md"