Skip to content

Commit

Permalink
Test RHEL workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Oct 21, 2024
1 parent bc7ec38 commit e52d8e9
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# check-standard.yaml is likely a better choice.
# usethis::use_github_action("check-standard") will install it.
on:
push:
# push:
pull_request:

name: R-CMD-check
Expand Down
54 changes: 54 additions & 0 deletions .github/workflows/RHEL-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
on:
push:
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 }}
shell: bash

- name: Install R
if: ${{ matrix.config.r != 'release' }}
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

0 comments on commit e52d8e9

Please sign in to comment.