Skip to content

Commit 705c7b0

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 <[email protected]> Signed-off-by: HyukjinKwon <[email protected]>
1 parent 2545dd1 commit 705c7b0

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
@@ -148,11 +148,13 @@ jobs:
148148
python3.8 -m pip install numpy pyarrow pandas scipy
149149
python3.8 -m pip list
150150
# SparkR
151-
- name: Install R 3.6
152-
uses: r-lib/actions/setup-r@v1
151+
- name: Install R 4.0
153152
if: contains(matrix.modules, 'sparkr')
154-
with:
155-
r-version: 3.6
153+
run: |
154+
sudo sh -c "echo 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/' >> /etc/apt/sources.list"
155+
curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xE298A3A825C0D65DFD57CBB651716619E084DAB9" | sudo apt-key add
156+
sudo apt-get update
157+
sudo apt-get install -y r-base r-base-dev libcurl4-openssl-dev
156158
- name: Install R packages
157159
if: contains(matrix.modules, 'sparkr')
158160
run: |
@@ -195,10 +197,12 @@ jobs:
195197
- name: Install Python linter dependencies
196198
run: |
197199
pip3 install flake8 sphinx numpy
198-
- name: Install R 3.6
199-
uses: r-lib/actions/setup-r@v1
200-
with:
201-
r-version: 3.6
200+
- name: Install R 4.0
201+
run: |
202+
sudo sh -c "echo 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/' >> /etc/apt/sources.list"
203+
curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xE298A3A825C0D65DFD57CBB651716619E084DAB9" | sudo apt-key add
204+
sudo apt-get update
205+
sudo apt-get install -y r-base r-base-dev libcurl4-openssl-dev
202206
- name: Install R linter dependencies and SparkR
203207
run: |
204208
sudo apt-get install -y libcurl4-openssl-dev

0 commit comments

Comments
 (0)