|
| 1 | +# Workflow derived from https://github.com/rti-international/r-lib-actions/tree/v2/examples |
| 2 | +# Need help debugging build failures? Start at https://github.com/rti-international/r-lib-actions#where-to-find-help |
| 3 | +on: |
| 4 | + push: |
| 5 | + pull_request: |
| 6 | + branches: [main, dev] |
| 7 | + |
| 8 | +name: R-CMD-check |
| 9 | + |
| 10 | +jobs: |
| 11 | + R-CMD-check: |
| 12 | + runs-on: ${{ matrix.config.os }} |
| 13 | + |
| 14 | + name: ${{ matrix.config.os }} (${{ matrix.config.r }}) |
| 15 | + |
| 16 | + strategy: |
| 17 | + fail-fast: false |
| 18 | + matrix: |
| 19 | + config: |
| 20 | + - {os: macos-latest, r: 'release', rtools-version: 45} |
| 21 | + - {os: windows-latest, r: 'release', rtools-version: 45} |
| 22 | + - {os: ubuntu-latest, r: 'release', rtools-version: 45} |
| 23 | + |
| 24 | + env: |
| 25 | + GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} |
| 26 | + R_KEEP_PKG_SOURCE: yes |
| 27 | + |
| 28 | + steps: |
| 29 | + - uses: actions/checkout@v4 |
| 30 | + |
| 31 | + - uses: rti-international/r-lib-actions/setup-pandoc@v2-branch |
| 32 | + |
| 33 | + - uses: rti-international/r-lib-actions/setup-r@v2-branch |
| 34 | + with: |
| 35 | + r-version: ${{ matrix.config.r }} |
| 36 | + http-user-agent: ${{ matrix.config.http-user-agent }} |
| 37 | + use-public-rspm: true |
| 38 | + rtools-version: ${{ matrix.config.rtools-version }} |
| 39 | + |
| 40 | + - uses: rti-international/r-lib-actions/setup-r-dependencies@v2-branch |
| 41 | + with: |
| 42 | + extra-packages: any::rcmdcheck |
| 43 | + needs: check |
| 44 | + |
| 45 | + - uses: rti-international/r-lib-actions/check-r-package@v2-branch |
| 46 | + with: |
| 47 | + args: 'c("--no-manual")' |
| 48 | + upload-snapshots: true |
| 49 | + upload-results: false |
| 50 | + |
| 51 | + - name: Install Package |
| 52 | + run: | |
| 53 | + mkdir ./package_binary |
| 54 | + Rscript ./.github/install_package.R |
| 55 | +
|
| 56 | + - uses: actions/upload-artifact@v4 |
| 57 | + with: |
| 58 | + name: ${{ matrix.config.os }} (${{ matrix.config.r }}) |
| 59 | + path: ./package_binary/SampleSelectR |
0 commit comments