Skip to content

rhel.yaml

rhel.yaml #5

Workflow file for this run

on:
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:
# cannot run the nodejs actions because RHEL7 cannot run node20
# - { os: rhel7, r: release, key: REDHAT_ACTIVATION_KEY_RHEL7 }
- { os: rhel8, r: release }
- { os: rhel9, r: release }
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 ${{ secrets.REDHAT_KEY }}
dnf install -y diffutils perl
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
env:
NOT_CRAN: true
_R_CHECK_DOC_SIZES_: FALSE
- name: Unregister
if: always()
run: |
subscription-manager unregister || true