Skip to content

Commit

Permalink
Merge pull request #358 from insightsengineering/fix-gha-cache
Browse files Browse the repository at this point in the history
fixed stan cache
  • Loading branch information
gowerc authored May 18, 2022
2 parents 369882a + 8625354 commit 4fd87b7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/actions/build-src/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ runs:
sink()
shell: Rscript {0}

# The default R/stanmodels.R was updated in v2.2.0 (11Apr2022)
# Normally for older versions it would change itself on the fly
# when it compiles the stan model
# but as we are using cached models we are preventing compilation
# and thus need to manually refresh the file
- name: Refresh rstantools config files
run: |
rstantools::rstan_config()
shell: Rscript {0}

- name: Cache Compiled Stan Code
id: cache-pkgs
Expand Down

0 comments on commit 4fd87b7

Please sign in to comment.