Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ci] [R-package] use macOS 11.x in R 4.x CI jobs #4990

Closed
jameslamb opened this issue Feb 1, 2022 · 0 comments · Fixed by #5137
Closed

[ci] [R-package] use macOS 11.x in R 4.x CI jobs #4990

jameslamb opened this issue Feb 1, 2022 · 0 comments · Fixed by #5137

Comments

@jameslamb
Copy link
Collaborator

Summary

Created from #4989 (comment).

LightGBM's CI jobs for the R package should use the newest available macOS version (i.e. macOS-latest environment from GitHub Actions) together with jobs testing the newest available R version.

Motivation

macOS 11 ("Big Sur") was first introduced in June 2020 (about 19 months ago). It's likely that a large portion of the LightGBM users working on Macs are using R 4.1.x along with macOS 11. Testing this combination would prevent changes that break compatibility with such environments from being merged.

Description

To address this issue, update os: in https://github.com/microsoft/LightGBM/blob/master/.github/workflows/r_package.yml to macOS-latest for R 4.x macOS jobs.

Note that when I tried this in #4989, I saw the following error (build link):

installer: Error - the package path specified was invalid: '/Users/runner/work/LightGBM/LightGBM/R.pkg'.

Possible solutions to that:

  1. maybe R 4.2.0 will produce a .pkg (at https://cran.r-project.org/bin/macosx/base/) that works with Big Sur
  2. installing R from Homebrew (https://formulae.brew.sh/formula/r)
  3. maybe the macOS-latest environment will become compatible with R 4.1.2 in response to Update/Add R actions/runner-images#4960

References

@jameslamb jameslamb changed the title [ci] use macOS 11.x in R 4.x CI jobs [ci] [R-package] use macOS 11.x in R 4.x CI jobs Feb 1, 2022
jameslamb added a commit that referenced this issue Apr 10, 2022
…5137)

* [ci] update to R 4.1.3 and use macOS-latest for R jobs (fixes #4990)

* update Windows version

* update docs env

* simplify r-package config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant