File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 3939 - name : Install JAGS (Windows)
4040 if : runner.os == 'Windows'
4141 run : |
42+ # Create a temporary directory for the installer
43+ $tempDir = Join-Path $env:RUNNER_TEMP "jags-installer"
44+ New-Item -ItemType Directory -Path $tempDir -Force
45+
46+ # Download JAGS to the temporary directory
47+ $installerPath = Join-Path $tempDir "JAGS-4.3.1.exe"
4248 curl -LO https://sourceforge.net/projects/mcmc-jags/files/JAGS/4.x/Windows/JAGS-4.3.1.exe
43- Start-Process -FilePath "JAGS-4.3.1.exe" -ArgumentList "/S" -NoNewWindow -Wait
49+ Move-Item -Path "JAGS-4.3.1.exe" -Destination $installerPath
50+
51+ # Install JAGS
52+ Start-Process -FilePath $installerPath -ArgumentList "/S" -NoNewWindow -Wait
53+
54+ # Set environment variable
4455 echo "JAGS_HOME=C:/Program Files/JAGS/JAGS-4.3.1" >> $env:GITHUB_ENV
56+
57+ # Clean up the installer
58+ Remove-Item -Path $tempDir -Recurse -Force
4559 shell : pwsh
4660
4761 - name : Set up JAGS environment (Windows)
You can’t perform that action at this time.
0 commit comments