File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,13 +40,27 @@ jobs:
4040 http-user-agent : ${{ matrix.config.http-user-agent }}
4141 use-public-rspm : true
4242
43+ - name : Cache JAGS (Windows)
44+ if : runner.os == 'Windows'
45+ uses : actions/cache@v3
46+ with :
47+ path : C:\Program Files\JAGS
48+ key : ${{ runner.os }}-jags-4.3.1
49+ restore-keys : |
50+ ${{ runner.os }}-jags-
51+
4352 - name : Install JAGS (Windows)
4453 if : runner.os == 'Windows'
45- run : |
46- curl.exe -o wjags.exe --url https://deac-fra.dl.sourceforge.net/project/mcmc-jags/JAGS/4.x/Windows/JAGS-4.2.0.exe
47- wjags.exe /S
48- del wjags.exe
4954 shell : cmd
55+ run : |
56+ if not exist "C:\Program Files\JAGS\JAGS-4.3.1\bin\jags-terminal.exe" (
57+ echo "JAGS not found in cache, downloading and installing..."
58+ curl -o jags-installer.exe -L https://sourceforge.net/projects/mcmc-jags/files/JAGS/4.x/Windows/JAGS-4.3.1.exe/download
59+ jags-installer.exe /S
60+ del jags-installer.exe
61+ ) else (
62+ echo "JAGS found in cache, skipping installation"
63+ )
5064
5165 - name : Install JAGS (macOS)
5266 if : runner.os == 'macOS'
You can’t perform that action at this time.
0 commit comments