Skip to content

Commit 6e0a076

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 e6f276e commit 6e0a076

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

0 commit comments

Comments
 (0)