Skip to content

Commit

Permalink
Check distro & R version in workflow
Browse files Browse the repository at this point in the history
To make sure we are building the correct binaries for the repo.
This helps with #1. First try for Fedora 38.
  • Loading branch information
gaborcsardi committed Mar 20, 2024
1 parent fd742ec commit 13ed86d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/fedora-38-R4.4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ jobs:
runs-on: ubuntu-latest
container: ghcr.io/r-hub/containers/gcc13:latest
steps:
- name: Check Distro and R version
run: |
readRenviron("/etc/os-release")
if (Sys.getenv("ID") != "fedora") stop("Not Fedora")
if (Sys.getenv("VERSION_ID") != "38") stop("Not Fedora 38")
if (getRversion() < "4.4.0" || getRversion() >= "4.5.0") {
stop("Not R 4.4.x")
}
shell: Rscript {0}
- uses: actions/checkout@v3
- uses: r-hub/repos/actions/update-repo@main
with:
Expand Down

0 comments on commit 13ed86d

Please sign in to comment.