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:
25
25
with :
26
26
r-version : ${{ matrix.r-version }}
27
27
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'
31
30
run : |
32
31
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
34
33
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
35
39
- name : Set virtualenv activation command (Windows)
36
40
if : startsWith(matrix.os, 'windows')
37
41
shell : bash
You can’t perform that action at this time.
0 commit comments