Skip to content

Commit

Permalink
update actions script
Browse files Browse the repository at this point in the history
  • Loading branch information
tnagler committed Aug 19, 2024
1 parent 5ba086d commit a486bea
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ jobs:
config:
- { os: windows-latest, r: 'release', args: "--no-manual"}
- { os: macOS-latest, r: 'release', args: "--no-manual"}
- { os: macOS-latest, r: 'devel', args: "--no-manual --as-cran"}
- { os: macOS-latest, r: 'devel', args: "--as-cran"}
- { os: ubuntu-22.04, r: 'devel', args: "--no-manual" }

env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
CRAN: ${{ matrix.config.cran }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: r-lib/actions/setup-r@v2
with:
Expand All @@ -35,7 +35,7 @@ jobs:

- name: Cache R packages
if: runner.os != 'Windows'
uses: actions/cache@v1
uses: actions/cache@v4
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-r-${{ matrix.config.r }}-${{ hashFiles('DESCRIPTION') }}
Expand All @@ -49,6 +49,16 @@ jobs:
eval sudo $cmd
done < <(Rscript -e 'writeLines(remotes::system_requirements("ubuntu", "20.04"))')
- name: Install system dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get install --no-install-recommends -y libcurl4-openssl-dev
while read -r cmd
do
eval sudo $cmd
done < <(Rscript -e 'writeLines(remotes::system_requirements("ubuntu", "20.04"))')
- name: Install GSL
run: |
if [ "${{ runner.os }}" == "Linux" ]; then
Expand Down

0 comments on commit a486bea

Please # to comment.