Skip to content

Commit

Permalink
ci: use r-lib/actions/setup-r-dependencies to install R packages
Browse files Browse the repository at this point in the history
  • Loading branch information
eitsupi committed Jan 19, 2025
1 parent 446c8c1 commit c02d312
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/release-lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,16 @@ jobs:
if: runner.os != 'Windows'
uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
# TODO: `true` after rspm supports arm linux <https://github.com/r-lib/actions/issues/960>
use-public-rspm: ${{ matrix.os != 'ubuntu-22.04-arm' }}
Ncpus: 2

- uses: r-lib/actions/setup-r-dependencies@v2
if: runner.os != 'Windows'
with:
dependencies": 'FALSE'
extra-packages: any::pkgload

- name: build lib
env:
NOT_CRAN: "true"
Expand All @@ -92,7 +99,6 @@ jobs:
if [[ "${{ runner.os }}" != "Windows" ]]; then
# Rinternals header is needed
pushd ..
Rscript -e 'install.packages("pkgbuild")'
Rscript -e 'pkgbuild::compile_dll()'
popd
else
Expand Down Expand Up @@ -169,12 +175,11 @@ jobs:
- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.r }}
use-public-rspm: true
# TODO: `true` after rspm supports arm linux <https://github.com/r-lib/actions/issues/960>
use-public-rspm: ${{ matrix.os != 'ubuntu-22.04-arm' }}
Ncpus: "2"

- uses: r-lib/actions/setup-r-dependencies@v2
# TODO: remove after this action supports arm linux <https://github.com/r-lib/actions/issues/960>
if: matrix.os != 'ubuntu-22.04-arm'
with:
extra-packages: any::pkgload, any::testthat

Expand Down

0 comments on commit c02d312

Please sign in to comment.