Try to fix Windows timeouts #149
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples | |
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help | |
on: | |
push: | |
pull_request: | |
name: R-CMD-check | |
jobs: | |
R-CMD-check: | |
runs-on: ${{ matrix.config.os }} | |
name: ${{ matrix.config.os }} (${{ matrix.config.r }}) | |
strategy: | |
fail-fast: false | |
# max-parallel: 2 #try to avoid races due to concurrent db access | |
matrix: | |
config: | |
- {os: macOS-13, r: 'release'} | |
- {os: macOS-14, r: 'release'} | |
- {os: windows-latest, r: '4.1'} | |
- {os: windows-latest, r: 'release'} | |
- {os: windows-latest, r: 'devel'} | |
- {os: ubuntu-20.04, r: 'devel', http-user-agent: 'release'} | |
- {os: ubuntu-20.04, r: 'release'} | |
- {os: ubuntu-20.04, r: 'oldrel-4'} | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
R_KEEP_PKG_SOURCE: yes | |
steps: | |
- uses: actions/checkout@v4 | |
- if: runner.os == 'macos' | |
run: | | |
brew tap mongodb/brew | |
brew install [email protected] | |
brew services start $(brew list --formula | grep mongodb-community) | |
- if: runner.os == 'linux' | |
run: sudo systemctl restart mongod | |
- if: runner.os == 'windows' | |
run: | | |
reg add HKLM\System\CurrentControlSet\Control /v ServicesPipeTimeout /t REG_DWORD /d 300000 /f | |
Set-Service mongodb -StartupType Automatic | |
Start-Sleep -Seconds 3 | |
Start-Service -Name MongoDB | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
r-version: ${{ matrix.config.r }} | |
http-user-agent: ${{ matrix.config.http-user-agent }} | |
use-public-rspm: true | |
- uses: r-lib/actions/setup-r-dependencies@v2 | |
with: | |
extra-packages: rcmdcheck | |
- uses: r-lib/actions/check-r-package@v2 | |
with: | |
args: 'c("--no-manual","--run-dontrun","--as-cran")' |