@@ -44,32 +44,35 @@ jobs:
4444 - name : set version name (Windows)
4545 id : version_win
4646 if : ${{ runner.os == 'Windows' }}
47+ shell : pwsh
4748 run : |
4849 $TAG = (${env:GITHUB_REF} -replace 'refs/tags/', '')
49- echo "::set-output name=name:: $TAG"
50+ echo "name=$TAG" >> ${env:GITHUB_OUTPUT}
5051
5152 - name : set version name
5253 id : version
5354 if : ${{ runner.os != 'Windows' }}
54- run : echo ::set-output name=name::${GITHUB_REF#refs/tags/}
55+ run : |
56+ TAG=${GITHUB_REF#refs/tags/}
57+ echo "name=$TAG" >> "$GITHUB_OUTPUT"
5558
5659 - name : Checkout
57- uses : actions/checkout@v2
60+ uses : actions/checkout@v4
5861 with :
5962 submodules : recursive
6063
6164 - name : cache dependencies
62- uses : actions/cache@v2
65+ uses : actions/cache@v4
6366 id : cache
6467 with :
6568 path : ${{ github.HOME }}/.local
66- key : ${{ runner.os }}-dependencies
69+ key : ${{ runner.os }}-dependencies-${{ hashFiles('CMakeLists.txt') }}
6770
6871 - name : install GoogleTest
69- if : ${{ steps.cache.output .cache-hit != 'true' }}
72+ if : ${{ steps.cache.outputs .cache-hit != 'true' }}
7073 run : |
7174 cd ..
72- git clone https://github.com/google/googletest.git --branch release-1.10 .0
75+ git clone https://github.com/google/googletest.git --branch v1.17 .0
7376 cd googletest
7477 cmake -Bbuild -DCMAKE_INSTALL_PREFIX="$HOME/.local" -Dgtest_force_shared_crt=1
7578 cmake --build build --config Release
@@ -104,14 +107,14 @@ jobs:
104107 tar -cvzf $HOME/artifact.tar.gz .
105108
106109 - name : upload artifacts
107- uses : actions/upload-artifact@v2
110+ uses : actions/upload-artifact@v4
108111 if : ${{ runner.os == 'Windows' }}
109112 with :
110113 name : ${{ runner.os }}-${{ steps.version_win.outputs.name }}
111114 path : ' ~/artifact.*'
112115
113116 - name : upload artifacts
114- uses : actions/upload-artifact@v2
117+ uses : actions/upload-artifact@v4
115118 if : ${{ runner.os != 'Windows' }}
116119 with :
117120 name : ${{ runner.os }}-${{ steps.version.outputs.name }}
@@ -141,7 +144,7 @@ jobs:
141144 prerelease : false
142145
143146 - name : download artifact
144- uses : actions/download-artifact@v2
147+ uses : actions/download-artifact@v4
145148 with :
146149 name : " Linux-${{ steps.version.outputs.name }}"
147150 path : ./
@@ -157,7 +160,7 @@ jobs:
157160 asset_content_type : application/x-tar
158161
159162 - name : download artifact
160- uses : actions/download-artifact@v2
163+ uses : actions/download-artifact@v4
161164 with :
162165 name : " Windows-${{ steps.version.outputs.name }}"
163166 path : ./
@@ -173,7 +176,7 @@ jobs:
173176 asset_content_type : application/zip
174177
175178 - name : download artifact
176- uses : actions/download-artifact@v2
179+ uses : actions/download-artifact@v4
177180 with :
178181 name : " macOS-${{ steps.version.outputs.name }}"
179182 path : ./
0 commit comments