Skip to content

Commit d24254b

Browse files
dongjoon-hyunHyukjinKwon
authored andcommitted
[SPARK-31589][INFRA] Use r-lib/actions/setup-r in GitHub Action
### What changes were proposed in this pull request? This PR aims to use `r-lib/actions/setup-r` because it's more stable and maintained by 3rd party. ### Why are the changes needed? This will recover the current outage. In addition, this will be more robust in the future. As of now, this is tested via dongjoon-hyun#17 . ### Does this PR introduce any user-facing change? No. ### How was this patch tested? Pass the GitHub Actions, especially `Linter R` and `Generate Documents`. Closes #28382 from dongjoon-hyun/SPARK-31589. Authored-by: Dongjoon Hyun <dongjoon@apache.org> Signed-off-by: HyukjinKwon <gurwls223@apache.org> (cherry picked from commit 2d3e960) Signed-off-by: HyukjinKwon <gurwls223@apache.org>
1 parent e86e266 commit d24254b

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/master.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,12 @@ jobs:
103103
- uses: actions/setup-java@v1
104104
with:
105105
java-version: '11'
106-
- name: install R
106+
- uses: r-lib/actions/setup-r@v1
107+
with:
108+
r-version: '3.6.2'
109+
- name: Install lib
107110
run: |
108-
echo 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/' | sudo tee -a /etc/apt/sources.list
109-
curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xE298A3A825C0D65DFD57CBB651716619E084DAB9" | sudo apt-key add
110-
sudo apt-get update
111-
sudo apt-get install -y r-base r-base-dev libcurl4-openssl-dev
111+
sudo apt-get install -y libcurl4-openssl-dev
112112
- name: install R packages
113113
run: |
114114
sudo Rscript -e "install.packages(c('curl', 'xml2', 'httr', 'devtools', 'testthat', 'knitr', 'rmarkdown', 'roxygen2', 'e1071', 'survival'), repos='https://cloud.r-project.org/')"
@@ -139,12 +139,12 @@ jobs:
139139
- uses: actions/setup-ruby@v1
140140
with:
141141
ruby-version: '2.7'
142-
- name: Install R
142+
- uses: r-lib/actions/setup-r@v1
143+
with:
144+
r-version: '3.6.2'
145+
- name: Install lib and pandoc
143146
run: |
144-
echo 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/' | sudo tee -a /etc/apt/sources.list
145-
curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xE298A3A825C0D65DFD57CBB651716619E084DAB9" | sudo apt-key add
146-
sudo apt-get update
147-
sudo apt-get install -y r-base r-base-dev libcurl4-openssl-dev pandoc
147+
sudo apt-get install -y libcurl4-openssl-dev pandoc
148148
- name: Install packages
149149
run: |
150150
pip install sphinx mkdocs numpy

0 commit comments

Comments
 (0)