From 1d8f290318a0e0de68863b241ef2ab5b16fda290 Mon Sep 17 00:00:00 2001 From: Mathias LANG Date: Sat, 22 Jun 2024 06:24:46 +0200 Subject: [PATCH] Upgrade some deprecated GitHub actions (#16607) The UI complains about them being on Node 16. --- .github/workflows/pre_commit.yml | 6 +++--- .github/workflows/runnable_cxx.yml | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pre_commit.yml b/.github/workflows/pre_commit.yml index 0c002891d3..e6192431cf 100644 --- a/.github/workflows/pre_commit.yml +++ b/.github/workflows/pre_commit.yml @@ -17,7 +17,7 @@ jobs: env: SKIP: no-commit-to-branch steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Configure Git run: | git config --global color.diff.meta "11" @@ -29,8 +29,8 @@ jobs: git config --global color.diff.whitespace "red reverse" git config --global diff.wsErrorHighlight "all" - - uses: actions/setup-python@v3.0.0 - - uses: pre-commit/action@v3.0.0 + - uses: actions/setup-python@v5 + - uses: pre-commit/action@v3.0.1 - name: Check changelog entries run: | check_prefix="$(find changelog -type f -name '*\.dd' -a ! -name 'dmd\.*' -a ! -name 'druntime\.*')" diff --git a/.github/workflows/runnable_cxx.yml b/.github/workflows/runnable_cxx.yml index e57bf4c73b..dc701907cd 100644 --- a/.github/workflows/runnable_cxx.yml +++ b/.github/workflows/runnable_cxx.yml @@ -172,12 +172,12 @@ jobs: # Checking out up DMD, druntime, Phobos # ######################################### - name: Checkout DMD - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: dmd persist-credentials: false - name: Checkout Phobos - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: path: phobos repository: dlang/phobos @@ -191,7 +191,7 @@ jobs: - name: '[Posix] Load cached clang' id: cache-clang if: matrix.compiler == 'clang' && runner.os != 'Windows' - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ github.workspace }}/clang+llvm-${{ matrix.cxx-version }}-${{ matrix.arch }}/ key: ${{ matrix.cxx-version }}-${{ matrix.arch }}-2022-09-25-2121 @@ -367,7 +367,7 @@ jobs: ######################################## - name: Store artifacts if: ${{ matrix.storeArtifacts }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: dmd-${{ matrix.os }} path: install