Skip to content

Commit 174a414

Browse files
committed
CI: Add OC to path if restored from cache
1 parent ba36b82 commit 174a414

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/CI.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,11 @@ jobs:
4444
mkdir -p "~/apps/OpenCoarrays/${OC_V}"
4545
cmake -S . -B build -DCMAKE_INSTALL_PREFIX="~/apps/OpenCoarrays/${OC_V}"
4646
cmake --build build -t install -j
47-
echo "${HOME}/apps/OpenCoarrays/${OC_V}/bin" >> $GITHUB_PATH
47+
echo - name: Add to PATH if cache hit
48+
49+
- name: Add to PATH if cache hit
50+
if: steps.cache-opencoarrays.outputs.cache-hit == 'true'
51+
run: echo "${HOME}/apps/OpenCoarrays/${{ env.OC_V }}/bin" >> $GITHUB_PATH"${HOME}/apps/OpenCoarrays/${OC_V}/bin" >> $GITHUB_PATH
4852

4953
- name: Build, run, and test
5054
run: |

0 commit comments

Comments
 (0)