File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -25,13 +25,17 @@ jobs:
2525 with :
2626 r-version : ${{ matrix.r-version }}
2727 use-public-rspm : true
28- cache-version : 2
29- - name : Set env commands (POSIX)
30- if : " !startsWith(matrix.os, 'windows')"
28+ - name : Set env commands (Linux)
29+ if : runner.os == 'Linux'
3130 run : |
3231 echo "VENV_ACTIVATE=source pyenv_base/bin/activate" >> $GITHUB_ENV
33- echo "LD_LIBRARY_PATH=$(dirname $(find / -name libR.so)):${LD_LIBRARY_PATH}" >> $GITHUB_ENV
32+ echo "LD_LIBRARY_PATH=$(dirname $(find / -name libR.so 2> /dev/null )):${LD_LIBRARY_PATH}" >> $GITHUB_ENV
3433 echo "R_LIBRARY=export LD_LIBRARY_PATH=$(python -m rpy2.situation LD_LIBRARY_PATH):${LD_LIBRARY_PATH}" >> $GITHUB_ENV
34+ - name : Set env commands (MacOS)
35+ if : " startsWith(matrix.os, 'macos')"
36+ run : |
37+ echo "VENV_ACTIVATE=source pyenv_base/bin/activate" >> $GITHUB_ENV
38+ echo "R_LIBRARY=$(find /Library -name libR.dylib 2> /dev/null | head -1)" >> $GITHUB_ENV
3539 - name : Set virtualenv activation command (Windows)
3640 if : startsWith(matrix.os, 'windows')
3741 shell : bash
You can’t perform that action at this time.
0 commit comments