Skip to content

Commit 9174fb7

Browse files
authored
Merge pull request #307 from astro-informatics/tk/update-deprecated-workflow
Update deprecated things in GitHub workflow
2 parents c58e295 + 8bb2e84 commit 9174fb7

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/cmake.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
mpi: "on"
6262

6363
steps:
64-
- uses: actions/checkout@v2
64+
- uses: actions/checkout@v3
6565

6666
# Enable tmate debugging of manually-triggered workflows if the input option was provided
6767
- name: Setup tmate session
@@ -97,18 +97,15 @@ jobs:
9797

9898
- name: Prepare ccache timestamp
9999
id: ccache_cache_timestamp
100-
shell: cmake -P {0}
101-
run: |
102-
string(TIMESTAMP current_date "%Y-%m-%d-%H;%M;%S" UTC)
103-
message("::set-output name=timestamp::${current_date}")
100+
run: echo "{date_and_time}={$(date +'%Y-%m-%d-%H;%M;%S')}" >> $GITHUB_OUTPUT
104101
- name: Set ccache cache directory
105102
shell: bash
106103
run: echo "CCACHE_DIR=${{runner.workspace}}/.ccache" >> "${GITHUB_ENV}"
107104
- name: Cache ccache files
108-
uses: actions/cache@v2
105+
uses: actions/cache@v3
109106
with:
110107
path: ${{runner.workspace}}/.ccache
111-
key: ${{matrix.os}}-${{matrix.cxx}}-${{matrix.mpi}}-${{matrix.omp}}-${{ steps.ccache_cache_timestamp.outputs.timestamp }}
108+
key: ${{matrix.os}}-${{matrix.cxx}}-${{matrix.mpi}}-${{matrix.omp}}-${{ steps.ccache_cache_timestamp.outputs.date_and_time }}
112109
restore-keys: |
113110
${{ matrix.os }}-${{ matrix.cxx }}-${{ matrix.mpi }}-${{ matrix.omp }}
114111
${{ matrix.os }}-${{ matrix.cxx }}-${{ matrix.mpi }}

0 commit comments

Comments
 (0)