You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by gu...@apache.org on 2020/04/28 04:25:52 UTC

[spark] branch branch-3.0 updated: [SPARK-31589][INFRA] Use `r-lib/actions/setup-r` in GitHub Action

This is an automated email from the ASF dual-hosted git repository.

gurwls223 pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/branch-3.0 by this push:
     new d24254b  [SPARK-31589][INFRA] Use `r-lib/actions/setup-r` in GitHub Action
d24254b is described below

commit d24254ba4aa138ea199dfa3a9439a6634422f280
Author: Dongjoon Hyun <do...@apache.org>
AuthorDate: Tue Apr 28 13:22:43 2020 +0900

    [SPARK-31589][INFRA] Use `r-lib/actions/setup-r` in GitHub Action
    
    ### What changes were proposed in this pull request?
    
    This PR aims to use `r-lib/actions/setup-r` because it's more stable and maintained by 3rd party.
    
    ### Why are the changes needed?
    
    This will recover the current outage. In addition, this will be more robust in the future.
    As of now, this is tested via https://github.com/dongjoon-hyun/spark/pull/17 .
    
    ### Does this PR introduce any user-facing change?
    
    No.
    
    ### How was this patch tested?
    
    Pass the GitHub Actions, especially `Linter R` and `Generate Documents`.
    
    Closes #28382 from dongjoon-hyun/SPARK-31589.
    
    Authored-by: Dongjoon Hyun <do...@apache.org>
    Signed-off-by: HyukjinKwon <gu...@apache.org>
    (cherry picked from commit 2d3e9601b58fbe33aeedb106be7e2a1fafa2e1fd)
    Signed-off-by: HyukjinKwon <gu...@apache.org>
---
 .github/workflows/master.yml | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml
index 33ea335..36f9e33 100644
--- a/.github/workflows/master.yml
+++ b/.github/workflows/master.yml
@@ -103,12 +103,12 @@ jobs:
     - uses: actions/setup-java@v1
       with:
         java-version: '11'
-    - name: install R
+    - uses: r-lib/actions/setup-r@v1
+      with:
+        r-version: '3.6.2'
+    - name: Install lib
       run: |
-        echo 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/' | sudo tee -a /etc/apt/sources.list
-        curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xE298A3A825C0D65DFD57CBB651716619E084DAB9" | sudo apt-key add
-        sudo apt-get update
-        sudo apt-get install -y r-base r-base-dev libcurl4-openssl-dev
+        sudo apt-get install -y libcurl4-openssl-dev
     - name: install R packages
       run: |
         sudo Rscript -e "install.packages(c('curl', 'xml2', 'httr', 'devtools', 'testthat', 'knitr', 'rmarkdown', 'roxygen2', 'e1071', 'survival'), repos='https://cloud.r-project.org/')"
@@ -139,12 +139,12 @@ jobs:
     - uses: actions/setup-ruby@v1
       with:
         ruby-version: '2.7'
-    - name: Install R
+    - uses: r-lib/actions/setup-r@v1
+      with:
+        r-version: '3.6.2'
+    - name: Install lib and pandoc
       run: |
-        echo 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/' | sudo tee -a /etc/apt/sources.list
-        curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xE298A3A825C0D65DFD57CBB651716619E084DAB9" | sudo apt-key add
-        sudo apt-get update
-        sudo apt-get install -y r-base r-base-dev libcurl4-openssl-dev pandoc
+        sudo apt-get install -y libcurl4-openssl-dev pandoc
     - name: Install packages
       run: |
         pip install sphinx mkdocs numpy


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org