Skip to content

Commit ccc9c89

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 773d120 commit ccc9c89

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
@@ -154,11 +154,13 @@ jobs:
154154
python3.8 -m pip install numpy pyarrow pandas scipy
155155
python3.8 -m pip list
156156
# SparkR
157-
- name: Install R 3.6
158-
uses: r-lib/actions/setup-r@v1
157+
- name: Install R 4.0
159158
if: contains(matrix.modules, 'sparkr')
160-
with:
161-
r-version: 3.6
159+
run: |
160+
sudo sh -c "echo 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/' >> /etc/apt/sources.list"
161+
curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xE298A3A825C0D65DFD57CBB651716619E084DAB9" | sudo apt-key add
162+
sudo apt-get update
163+
sudo apt-get install -y r-base r-base-dev libcurl4-openssl-dev
162164
- name: Install R packages
163165
if: contains(matrix.modules, 'sparkr')
164166
run: |
@@ -201,10 +203,12 @@ jobs:
201203
- name: Install Python linter dependencies
202204
run: |
203205
pip3 install flake8 sphinx numpy
204-
- name: Install R 3.6
205-
uses: r-lib/actions/setup-r@v1
206-
with:
207-
r-version: 3.6
206+
- name: Install R 4.0
207+
run: |
208+
sudo sh -c "echo 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/' >> /etc/apt/sources.list"
209+
curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xE298A3A825C0D65DFD57CBB651716619E084DAB9" | sudo apt-key add
210+
sudo apt-get update
211+
sudo apt-get install -y r-base r-base-dev libcurl4-openssl-dev
208212
- name: Install R linter dependencies and SparkR
209213
run: |
210214
sudo apt-get install -y libcurl4-openssl-dev

0 commit comments

Comments
 (0)