Merge pull request #210 from jeroenjanssens/supported-by-posit #9
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
| on: | ||
|
Check failure on line 1 in .github/workflows/rhel.yaml
|
||
| workflow_dispatch: | ||
| name: rhel.yaml | ||
| permissions: read-all | ||
| jobs: | ||
| rhel: | ||
| runs-on: ubuntu-latest | ||
| name: ${{ matrix.config.os }} (${{ matrix.config.r }}) | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| config: | ||
| - { os: rhel7, r: 'release', key: '${{ secrets.REDHAT_ACTIVATION_KEY_RHEL7 }}' } | ||
| - { os: rhel8, r: 'release', key: '${{ secrets.REDHAT_ACTIVATION_KEY_RHEL8 }}' } | ||
| container: | ||
| image: ghcr.io/r-hub/containers/${{ matrix.config.os }}:latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Register | ||
| run: | | ||
| subscription-manager register \ | ||
| --org ${{ secrets.REDHAT_ORG }} \ | ||
| --activationkey ${{ matrix.config.key }} | ||
| shell: bash | ||
| - name: Install R | ||
| run: | | ||
| rig add ${{ matrix.config.r }} | ||
| shell: bash | ||
| - uses: r-lib/actions/setup-r-dependencies@v2 | ||
| with: | ||
| extra-packages: any::rcmdcheck | ||
| needs: check | ||
| - uses: r-lib/actions/check-r-package@v2 | ||
| with: | ||
| build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")' | ||
| env: | ||
| NOT_CRAN: true | ||
| - name: Unregister | ||
| if: always() | ||
| run: | | ||
| subscription-manager unregister || true | ||