From b0153081fc0d5dc0c806c06bcdbb5acadcecc7a6 Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Mon, 16 Mar 2026 11:17:45 +0100 Subject: [PATCH] Modernize use of some GitHub actions * CI: Replace get-current-time action with bash date command * CI: Replace ilammy/msvc-dev-cmd with TheMrMilchmann/setup-msvc-dev@v4 --- .github/workflows/AppFwkUnitTest.yml | 5 ++++- .github/workflows/ResInsightWithCache.yml | 12 +++++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/AppFwkUnitTest.yml b/.github/workflows/AppFwkUnitTest.yml index 15b92c5798..54209fe270 100644 --- a/.github/workflows/AppFwkUnitTest.yml +++ b/.github/workflows/AppFwkUnitTest.yml @@ -43,7 +43,10 @@ jobs: uses: lukka/get-cmake@latest - name: Use MSVC (Windows) - uses: ilammy/msvc-dev-cmd@v1 + if: contains(matrix.os, 'windows') + uses: TheMrMilchmann/setup-msvc-dev@v4 + with: + arch: x64 - name: Configure and build run: | diff --git a/.github/workflows/ResInsightWithCache.yml b/.github/workflows/ResInsightWithCache.yml index 3abfed1b94..d4b4cf7702 100644 --- a/.github/workflows/ResInsightWithCache.yml +++ b/.github/workflows/ResInsightWithCache.yml @@ -109,16 +109,18 @@ jobs: pip install -r GrpcInterface/Python/build-requirements.txt - name: Use MSVC (Windows) - uses: ilammy/msvc-dev-cmd@v1 + if: contains(matrix.config.os, 'windows') + uses: TheMrMilchmann/setup-msvc-dev@v4 + with: + arch: x64 - name: Setup buildcache uses: CeetronSolutions/setup-buildcache-action@v1.0 - - name: Get current time - uses: josStorer/get-current-time@v2 + - name: Get current date id: current-time - with: - format: YYYY-MM-DD + shell: bash + run: echo "formattedTime=$(date -u +%Y-%m-%d)" >> $GITHUB_OUTPUT - name: Print time stamp run: echo "timestamp ${{ steps.current-time.outputs.formattedTime }}"