mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-31 17:17:50 -05:00
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
This commit is contained in:
1 parent
2bf51950e4
commit
b0153081fc
2 files changed
+11
-6
No files matched your search
@@ -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: |
|
||||
|
||||
@@ -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 }}"
|
||||
|
||||
Reference in new issue
Block a user