From ad34bbf125f9cac09d6c21faa81e4ea8d477ebb4 Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Fri, 26 Jan 2024 12:45:25 +0100 Subject: [PATCH] Use latest version of actions * Update checkout action * Update setup-python * Update get-current-time * Update cache * Update upload-artifact --- .github/workflows/ResInsightWithCache.yml | 14 +++++++------- .github/workflows/clang-format.yml | 2 +- .github/workflows/clang-tidy.yml | 2 +- .github/workflows/cmake-format.yml | 2 +- .github/workflows/delete_artifacts.yml | 4 ++-- .github/workflows/python-linting.yml | 4 ++-- .github/workflows/spell-check.yml | 2 +- 7 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ResInsightWithCache.yml b/.github/workflows/ResInsightWithCache.yml index 8503c78576..f1d686aa97 100644 --- a/.github/workflows/ResInsightWithCache.yml +++ b/.github/workflows/ResInsightWithCache.yml @@ -65,12 +65,12 @@ jobs: } steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: true - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.8" - name: Display Python version @@ -119,7 +119,7 @@ jobs: endif() - name: Get current time - uses: josStorer/get-current-time@v2.0.2 + uses: josStorer/get-current-time@v2 id: current-time with: format: YYYY-MM-DD @@ -129,7 +129,7 @@ jobs: - name: Cache Buildcache id: cache-buildcache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ env.BUILDCACHE_DIR }} key: ${{ matrix.config.os }}-${{ matrix.config.cc }}-cache-v03-${{ steps.current-time.outputs.formattedTime }} @@ -187,7 +187,7 @@ jobs: - name: Cache dynamic version of OpenSSL (Linux) if: contains( matrix.config.os, 'ubuntu_disabled') - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ github.workspace }}/ThirdParty/vcpkg/installed/x64-linux-dynamic key: ${{ matrix.config.os }}-vcpkg-x64-linux-dynamic_v05 @@ -266,14 +266,14 @@ jobs: - name: Upload python distribution folder if: matrix.config.publish-to-pypi - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: python-distribution path: GrpcInterface/Python/dist - name: Upload Windows install artifact if: contains( matrix.config.os, 'windows') - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ResInsight-${{ matrix.config.name }} path: ${{ runner.workspace }}/ResInsight/cmakebuild/install diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml index b498585139..04ad634028 100644 --- a/.github/workflows/clang-format.yml +++ b/.github/workflows/clang-format.yml @@ -20,7 +20,7 @@ jobs: sudo apt-get update sudo apt-get install --option="APT::Acquire::Retries=3" clang-format-15 clang-format-15 --version - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Check format - ApplicationLibCode run: | cd ApplicationLibCode diff --git a/.github/workflows/clang-tidy.yml b/.github/workflows/clang-tidy.yml index ff7d8fea04..4ced492630 100644 --- a/.github/workflows/clang-tidy.yml +++ b/.github/workflows/clang-tidy.yml @@ -31,7 +31,7 @@ jobs: } steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: true diff --git a/.github/workflows/cmake-format.yml b/.github/workflows/cmake-format.yml index 0538602ce3..c8c150899d 100644 --- a/.github/workflows/cmake-format.yml +++ b/.github/workflows/cmake-format.yml @@ -9,7 +9,7 @@ jobs: - name: Install cmakelang for cmake-format run: | python3 -m pip install --user cmakelang - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Check format - ApplicationLibCode run: | ~/.local/bin/cmake-format -c ${{ github.workspace }}/cmake/cmake-format.py -i CMakeLists.txt diff --git a/.github/workflows/delete_artifacts.yml b/.github/workflows/delete_artifacts.yml index f187b2207a..af0eeea882 100644 --- a/.github/workflows/delete_artifacts.yml +++ b/.github/workflows/delete_artifacts.yml @@ -12,9 +12,9 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: setup python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: 3.8 - name: Remove old artifacts diff --git a/.github/workflows/python-linting.yml b/.github/workflows/python-linting.yml index 64f721f271..503de50174 100644 --- a/.github/workflows/python-linting.yml +++ b/.github/workflows/python-linting.yml @@ -6,8 +6,8 @@ jobs: lint: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: python-version: '3.10' - name: (Python) Use black to do linting diff --git a/.github/workflows/spell-check.yml b/.github/workflows/spell-check.yml index 1972c5da5a..bed35ef139 100644 --- a/.github/workflows/spell-check.yml +++ b/.github/workflows/spell-check.yml @@ -7,7 +7,7 @@ jobs: build: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: sobolevn/misspell-fixer-action@master with: options: "-rsvnuR ApplicationLibCode/"