Skip to content

Commit 1ec9b94

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 4deccbe commit 1ec9b94

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
@@ -146,11 +146,13 @@ jobs:
146146
python2.7 -m pip install numpy pyarrow pandas scipy
147147
python2.7 -m pip list
148148
# SparkR
149-
- name: Install R 3.6
150-
uses: r-lib/actions/setup-r@v1
149+
- name: Install R 4.0
151150
if: contains(matrix.modules, 'sparkr')
152-
with:
153-
r-version: 3.6
151+
run: |
152+
sudo sh -c "echo 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/' >> /etc/apt/sources.list"
153+
curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xE298A3A825C0D65DFD57CBB651716619E084DAB9" | sudo apt-key add
154+
sudo apt-get update
155+
sudo apt-get install -y r-base r-base-dev libcurl4-openssl-dev
154156
- name: Install R packages
155157
if: contains(matrix.modules, 'sparkr')
156158
run: |
@@ -193,10 +195,12 @@ jobs:
193195
- name: Install Python linter dependencies
194196
run: |
195197
pip3 install flake8 sphinx numpy
196-
- name: Install R 3.6
197-
uses: r-lib/actions/setup-r@v1
198-
with:
199-
r-version: 3.6
198+
- name: Install R 4.0
199+
run: |
200+
sudo sh -c "echo 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/' >> /etc/apt/sources.list"
201+
curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xE298A3A825C0D65DFD57CBB651716619E084DAB9" | sudo apt-key add
202+
sudo apt-get update
203+
sudo apt-get install -y r-base r-base-dev libcurl4-openssl-dev
200204
- name: Install R linter dependencies and SparkR
201205
run: |
202206
sudo apt-get install -y libcurl4-openssl-dev

0 commit comments

Comments
 (0)