Skip to content

Commit 64780e6

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 33a9d95 commit 64780e6

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

0 commit comments

Comments
 (0)