[CI] Use binary R dependencies on Windows. (#8241)
This commit is contained in:
parent
23faf656ad
commit
dd44ac91b8
21
.github/workflows/r_tests.yml
vendored
21
.github/workflows/r_tests.yml
vendored
@ -31,8 +31,8 @@ jobs:
|
|||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ${{ env.R_LIBS_USER }}
|
path: ${{ env.R_LIBS_USER }}
|
||||||
key: ${{ runner.os }}-r-${{ matrix.config.r }}-4-${{ hashFiles('R-package/DESCRIPTION') }}
|
key: ${{ runner.os }}-r-${{ matrix.config.r }}-5-${{ hashFiles('R-package/DESCRIPTION') }}
|
||||||
restore-keys: ${{ runner.os }}-r-${{ matrix.config.r }}-4-${{ hashFiles('R-package/DESCRIPTION') }}
|
restore-keys: ${{ runner.os }}-r-${{ matrix.config.r }}-5-${{ hashFiles('R-package/DESCRIPTION') }}
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
shell: Rscript {0}
|
shell: Rscript {0}
|
||||||
@ -80,20 +80,25 @@ jobs:
|
|||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ${{ env.R_LIBS_USER }}
|
path: ${{ env.R_LIBS_USER }}
|
||||||
key: ${{ runner.os }}-r-${{ matrix.config.r }}-4-${{ hashFiles('R-package/DESCRIPTION') }}
|
key: ${{ runner.os }}-r-${{ matrix.config.r }}-5-${{ hashFiles('R-package/DESCRIPTION') }}
|
||||||
restore-keys: ${{ runner.os }}-r-${{ matrix.config.r }}-4-${{ hashFiles('R-package/DESCRIPTION') }}
|
restore-keys: ${{ runner.os }}-r-${{ matrix.config.r }}-5-${{ hashFiles('R-package/DESCRIPTION') }}
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
shell: Rscript {0}
|
shell: Rscript {0}
|
||||||
|
if: matrix.config.os != 'windows-latest'
|
||||||
run: |
|
run: |
|
||||||
install.packages(${{ env.R_PACKAGES }},
|
install.packages(${{ env.R_PACKAGES }},
|
||||||
repos = 'http://cloud.r-project.org',
|
repos = 'http://cloud.r-project.org',
|
||||||
dependencies = c('Depends', 'Imports', 'LinkingTo'))
|
dependencies = c('Depends', 'Imports', 'LinkingTo'))
|
||||||
- name: Install igraph on Windows
|
|
||||||
|
- name: Install binary dependencies
|
||||||
shell: Rscript {0}
|
shell: Rscript {0}
|
||||||
if: matrix.config.os == 'windows-latest'
|
if: matrix.config.os == 'windows-latest'
|
||||||
run: |
|
run: |
|
||||||
install.packages('igraph', type='binary', dependencies = c('Depends', 'Imports', 'LinkingTo'))
|
install.packages(${{ env.R_PACKAGES }},
|
||||||
|
type = 'binary',
|
||||||
|
repos = 'http://cloud.r-project.org',
|
||||||
|
dependencies = c('Depends', 'Imports', 'LinkingTo'))
|
||||||
|
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
@ -132,8 +137,8 @@ jobs:
|
|||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ${{ env.R_LIBS_USER }}
|
path: ${{ env.R_LIBS_USER }}
|
||||||
key: ${{ runner.os }}-r-${{ matrix.config.r }}-4-${{ hashFiles('R-package/DESCRIPTION') }}
|
key: ${{ runner.os }}-r-${{ matrix.config.r }}-5-${{ hashFiles('R-package/DESCRIPTION') }}
|
||||||
restore-keys: ${{ runner.os }}-r-${{ matrix.config.r }}-4-${{ hashFiles('R-package/DESCRIPTION') }}
|
restore-keys: ${{ runner.os }}-r-${{ matrix.config.r }}-5-${{ hashFiles('R-package/DESCRIPTION') }}
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
shell: Rscript {0}
|
shell: Rscript {0}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user