Skip to content

Commit 2184fd0

Browse files
committed
[SPARK-32493][INFRA] Manually install R instead of using setup-r in GitHub Actions
This PR proposes to manually install R instead of using `setup-r` which seems broken. Currently, GitHub Actions uses its default R 3.4.4 installed, which we dropped as of SPARK-32073. While I am here, I am also upgrading R version to 4.0. Jenkins will test the old version and GitHub Actions tests the new version. AppVeyor uses R 4.0 but it does not check CRAN which is important when we make a release. To recover GitHub Actions build. No, dev-only Manually tested at #15 Closes apache#29302 from HyukjinKwon/SPARK-32493. Authored-by: HyukjinKwon <gurwls223@apache.org> Signed-off-by: HyukjinKwon <gurwls223@apache.org>
1 parent d8129c0 commit 2184fd0

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

.github/workflows/master.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,13 @@ jobs:
139139
python2.7 -m pip install numpy pandas scipy
140140
python2.7 -m pip list
141141
# SparkR
142-
- name: Install R 3.6
143-
uses: r-lib/actions/setup-r@v1
142+
- name: Install R 4.0
144143
if: contains(matrix.modules, 'sparkr')
145-
with:
146-
r-version: 3.6
144+
run: |
145+
sudo sh -c "echo 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/' >> /etc/apt/sources.list"
146+
curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xE298A3A825C0D65DFD57CBB651716619E084DAB9" | sudo apt-key add
147+
sudo apt-get update
148+
sudo apt-get install -y r-base r-base-dev libcurl4-openssl-dev
147149
- name: Install R packages
148150
if: contains(matrix.modules, 'sparkr')
149151
run: |
@@ -186,10 +188,12 @@ jobs:
186188
- name: Install Python linter dependencies
187189
run: |
188190
pip3 install flake8 sphinx numpy
189-
- name: Install R 3.6
190-
uses: r-lib/actions/setup-r@v1
191-
with:
192-
r-version: 3.6
191+
- name: Install R 4.0
192+
run: |
193+
sudo sh -c "echo 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/' >> /etc/apt/sources.list"
194+
curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xE298A3A825C0D65DFD57CBB651716619E084DAB9" | sudo apt-key add
195+
sudo apt-get update
196+
sudo apt-get install -y r-base r-base-dev libcurl4-openssl-dev
193197
- name: Install R linter dependencies and SparkR
194198
run: |
195199
sudo apt-get install -y libcurl4-openssl-dev

0 commit comments

Comments
 (0)