Skip to content

Commit

Permalink
Update CI to use r-universe rstan
Browse files Browse the repository at this point in the history
  • Loading branch information
andrjohns committed Jan 22, 2025
1 parent 99c0d66 commit 42dd4c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 27 deletions.
27 changes: 3 additions & 24 deletions .github/workflows/check-standalone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
- name: Install Development StanHeaders and CRAN RStan
run: |
Sys.setenv(MAKEFLAGS=paste0("-j",parallel::detectCores()))
install.packages("StanHeaders", repos = c("https://mc-stan.org/r-packages/", getOption("repos")))
install.packages("StanHeaders", repos = c("https://stan-dev.r-universe.dev", getOption("repos")))
install.packages('rstan', type='source')
shell: Rscript {0}

Expand All @@ -64,32 +64,11 @@ jobs:
- name: Install Development StanHeaders and Development RStan
run: |
Sys.setenv(MAKEFLAGS=paste0("-j",parallel::detectCores()))
install.packages("StanHeaders", repos = c("https://mc-stan.org/r-packages/", getOption("repos")))
install.packages("rstan", repos = c("https://mc-stan.org/r-packages/", getOption("repos")))
install.packages("StanHeaders", repos = c("https://stan-dev.r-universe.dev", getOption("repos")))
install.packages("rstan", repos = c("https://stan-dev.r-universe.dev", getOption("repos")))
shell: Rscript {0}

- name: Check against Development StanHeaders and Development RStan
run: |
rcmdcheck::rcmdcheck(path = "lgpr", args = c("--no-manual", "--as-cran"), build_args = "--no-manual")
shell: Rscript {0}

- name: Checkout RStan Experimental branch
uses: actions/checkout@v3
with:
repository: stan-dev/rstan
ref: experimental
path: rstan
submodules: 'recursive'

- name: Install Experimental StanHeaders and Experimental RStan
run: |
Sys.setenv(MAKEFLAGS=paste0("-j",parallel::detectCores()))
install.packages("rstan/StanHeaders", type = "source", repos = NULL)
install.packages("rstan/rstan/rstan", type = "source", repos = NULL)
shell: Rscript {0}

- name: Check against Experimental StanHeaders and Experimental RStan
run: |
rcmdcheck::rcmdcheck(path = "lgpr", args = c("--no-manual", "--as-cran"), build_args = "--no-manual")
shell: Rscript {0}

6 changes: 3 additions & 3 deletions .github/workflows/check-standard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
- name: Install Development StanHeaders and CRAN RStan
run: |
Sys.setenv(MAKEFLAGS=paste0("-j",parallel::detectCores()))
install.packages("StanHeaders", repos = c("https://mc-stan.org/r-packages/", getOption("repos")))
install.packages("StanHeaders", repos = c("https://stan-dev.r-universe.dev", getOption("repos")))
install.packages('rstan', type='source')
shell: Rscript {0}

Expand All @@ -60,8 +60,8 @@ jobs:
- name: Install Development StanHeaders and Development RStan
run: |
Sys.setenv(MAKEFLAGS=paste0("-j",parallel::detectCores()))
install.packages("StanHeaders", repos = c("https://mc-stan.org/r-packages/", getOption("repos")))
install.packages("rstan", repos = c("https://mc-stan.org/r-packages/", getOption("repos")))
install.packages("StanHeaders", repos = c("https://stan-dev.r-universe.dev", getOption("repos")))
install.packages("rstan", repos = c("https://stan-dev.r-universe.dev", getOption("repos")))
shell: Rscript {0}

- name: Check against Development StanHeaders and Development RStan
Expand Down

0 comments on commit 42dd4c0

Please sign in to comment.