From 41dc96708bf1937239bf31dee3e98b34a0bdc0d8 Mon Sep 17 00:00:00 2001 From: Sven van Haastregt Date: Tue, 19 Mar 2024 09:34:46 +0100 Subject: [PATCH] [CI] Upgrade to actions/checkout@v4 (#2438) Node.js 16 actions are deprecated, so update to v4 which uses Node 20. --- .github/workflows/check-code-style.yml | 2 +- .github/workflows/check-in-tree-build.yml | 18 +++++++++--------- .github/workflows/check-out-of-tree-build.yml | 4 ++-- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/check-code-style.yml b/.github/workflows/check-code-style.yml index e55c400b39..f282adebcc 100644 --- a/.github/workflows/check-code-style.yml +++ b/.github/workflows/check-code-style.yml @@ -32,7 +32,7 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Checkout sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # In order to gather diff from PR we need to fetch not only the latest # commit. Depth of 2 is enough, because GitHub Actions supply us with diff --git a/.github/workflows/check-in-tree-build.yml b/.github/workflows/check-in-tree-build.yml index 3de5748ebd..c938b497f9 100644 --- a/.github/workflows/check-in-tree-build.yml +++ b/.github/workflows/check-in-tree-build.yml @@ -61,13 +61,13 @@ jobs: # pre-installed. Make sure to override these with the relevant version. sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-${{ env.LLVM_VERSION }} 1000 - name: Checkout LLVM sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: llvm/llvm-project ref: main path: llvm-project - name: Checkout the translator sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: llvm-project/llvm/projects/SPIRV-LLVM-Translator - name: Get tag for SPIR-V Headers @@ -75,7 +75,7 @@ jobs: run: | echo "spirv_headers_tag=$(cat llvm-project/llvm/projects/SPIRV-LLVM-Translator/spirv-headers-tag.conf)" >> $GITHUB_ENV - name: Checkout SPIR-V Headers - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: KhronosGroup/SPIRV-Headers ref: ${{ env.spirv_headers_tag }} @@ -116,13 +116,13 @@ jobs: runs-on: windows-latest steps: - name: Checkout LLVM sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: llvm/llvm-project ref: main path: llvm-project - name: Checkout the translator sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: llvm-project\\llvm\\projects\\SPIRV-LLVM-Translator - name: Get tag for SPIR-V Headers @@ -130,7 +130,7 @@ jobs: run: | echo "spirv_headers_tag=$(type llvm-project\\llvm\\projects\\SPIRV-LLVM-Translator\\spirv-headers-tag.conf)" >> $GITHUB_ENV - name: Checkout SPIR-V Headers - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: KhronosGroup/SPIRV-Headers ref: ${{ env.spirv_headers_tag }} @@ -168,13 +168,13 @@ jobs: continue-on-error: true steps: - name: Checkout LLVM sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: llvm/llvm-project ref: main path: llvm-project - name: Checkout the translator sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: llvm-project/llvm/projects/SPIRV-LLVM-Translator - name: Get tag for SPIR-V Headers @@ -182,7 +182,7 @@ jobs: run: | echo "spirv_headers_tag=$(cat llvm-project/llvm/projects/SPIRV-LLVM-Translator/spirv-headers-tag.conf)" >> $GITHUB_ENV - name: Checkout SPIR-V Headers - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: KhronosGroup/SPIRV-Headers ref: ${{ env.spirv_headers_tag }} diff --git a/.github/workflows/check-out-of-tree-build.yml b/.github/workflows/check-out-of-tree-build.yml index 3bea94c190..4652195fe4 100644 --- a/.github/workflows/check-out-of-tree-build.yml +++ b/.github/workflows/check-out-of-tree-build.yml @@ -58,7 +58,7 @@ jobs: # pre-installed. Make sure to override these with the relevant version. sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-${{ env.LLVM_VERSION }} 1000 - name: Checkout the translator sources - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: SPIRV-LLVM-Translator - name: Get tag for SPIR-V Headers @@ -66,7 +66,7 @@ jobs: run: | echo "spirv_headers_tag=$(cat SPIRV-LLVM-Translator/spirv-headers-tag.conf)" >> $GITHUB_ENV - name: Checkout SPIR-V Headers - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: KhronosGroup/SPIRV-Headers ref: ${{ env.spirv_headers_tag }}