Skip to content

Commit 13f9f4d

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 0c701fb commit 13f9f4d

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
@@ -137,11 +137,13 @@ jobs:
137137
python2.7 -m pip install numpy "pyarrow==0.14.*" pandas scipy
138138
python2.7 -m pip list
139139
# SparkR
140-
- name: Install R 3.6
141-
uses: r-lib/actions/setup-r@v1
140+
- name: Install R 4.0
142141
if: contains(matrix.modules, 'sparkr')
143-
with:
144-
r-version: 3.6
142+
run: |
143+
sudo sh -c "echo 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/' >> /etc/apt/sources.list"
144+
curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xE298A3A825C0D65DFD57CBB651716619E084DAB9" | sudo apt-key add
145+
sudo apt-get update
146+
sudo apt-get install -y r-base r-base-dev libcurl4-openssl-dev
145147
- name: Install R packages
146148
if: contains(matrix.modules, 'sparkr')
147149
run: |
@@ -184,10 +186,12 @@ jobs:
184186
- name: Install Python linter dependencies
185187
run: |
186188
pip3 install flake8 sphinx numpy
187-
- name: Install R 3.6
188-
uses: r-lib/actions/setup-r@v1
189-
with:
190-
r-version: 3.6
189+
- name: Install R 4.0
190+
run: |
191+
sudo sh -c "echo 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/' >> /etc/apt/sources.list"
192+
curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xE298A3A825C0D65DFD57CBB651716619E084DAB9" | sudo apt-key add
193+
sudo apt-get update
194+
sudo apt-get install -y r-base r-base-dev libcurl4-openssl-dev
191195
- name: Install R linter dependencies and SparkR
192196
run: |
193197
sudo apt-get install -y libcurl4-openssl-dev

0 commit comments

Comments
 (0)