Properly divert quickjs IO/error calling for CRAN #44
This file contains hidden or 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/v2/examples | |
| # Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help | |
| on: | |
| push: | |
| branches: main | |
| pull_request: | |
| branches: main | |
| name: RStan stanc | |
| jobs: | |
| rstan-stanc: | |
| runs-on: ${{ matrix.config.os }} | |
| name: ${{ matrix.config.os }} (${{ matrix.config.r }}) | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| config: | |
| - {os: macos-latest, r: 'devel'} | |
| - {os: windows-11-arm, r: 'release', extra-pkgs: RcppCore/RcppParallel} | |
| - {os: windows-latest, r: 'devel'} | |
| - {os: ubuntu-24.04-arm, r: 'release'} | |
| - {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'} | |
| env: | |
| GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
| MAKEFLAGS: -j4 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| submodules: true | |
| - 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: local::. any::rstan any::rstantools ${{ matrix.config.extra-pkgs }} | |
| - name: Get Package sources | |
| run: | | |
| git clone --depth 1 https://github.com/cran/ctsem.git | |
| git clone --depth 1 https://github.com/cran/blavaan.git | |
| - name: Check rstan stanc works with complex packages | |
| run: | | |
| rstantools::rstan_config("ctsem") | |
| rstantools::rstan_config("blavaan") | |
| shell: Rscript {0} | |
| - name: Install development rstan | |
| run: | | |
| pak::repo_add('https://stan-dev.r-universe.dev') | |
| pak::pak('StanHeaders') | |
| pak::pak('rstan') | |
| shell: Rscript {0} | |
| - name: Check development rstan stanc works | |
| run: | | |
| rstantools::rstan_config("ctsem") | |
| rstantools::rstan_config("blavaan") | |
| shell: Rscript {0} |