From 844fe8ef038507a56fb649812bf09368a013cb9f Mon Sep 17 00:00:00 2001 From: James Lamb Date: Tue, 3 Nov 2020 12:08:29 -0600 Subject: [PATCH 1/4] [ci] upgrade GitHub Actions third-party actions to newest versions --- .github/workflows/r_artifacts.yml | 2 +- .github/workflows/r_package.yml | 6 +++--- .github/workflows/r_valgrind.yml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/r_artifacts.yml b/.github/workflows/r_artifacts.yml index 9a2ede4759cf..b3cb7c03a142 100644 --- a/.github/workflows/r_artifacts.yml +++ b/.github/workflows/r_artifacts.yml @@ -13,7 +13,7 @@ jobs: container: rocker/r-base steps: - name: Checkout repository - uses: actions/checkout@v1 + uses: actions/checkout@v2.3.4 with: fetch-depth: 5 submodules: true diff --git a/.github/workflows/r_package.yml b/.github/workflows/r_package.yml index 98ae1e36db9e..e7300a373d08 100644 --- a/.github/workflows/r_package.yml +++ b/.github/workflows/r_package.yml @@ -116,7 +116,7 @@ jobs: shell: pwsh run: git config --global core.autocrlf false - name: Checkout repository - uses: actions/checkout@v1 + uses: actions/checkout@v2.3.4 with: fetch-depth: 5 submodules: true @@ -143,7 +143,7 @@ jobs: $GITHUB_WORKSPACE/.ci/test.sh - name: Use conda on Windows if: startsWith(matrix.os, 'windows') - uses: goanpeca/setup-miniconda@v1 + uses: conda-incubator/setup-miniconda@v1.7.0 with: auto-update-conda: false - name: Setup and run tests on Windows @@ -166,7 +166,7 @@ jobs: container: rhub/rocker-gcc-san steps: - name: Checkout repository - uses: actions/checkout@v1 + uses: actions/checkout@v2.3.4 with: fetch-depth: 5 submodules: true diff --git a/.github/workflows/r_valgrind.yml b/.github/workflows/r_valgrind.yml index b94ab532c251..1ddc1a7afc1e 100644 --- a/.github/workflows/r_valgrind.yml +++ b/.github/workflows/r_valgrind.yml @@ -13,7 +13,7 @@ jobs: container: wch1/r-debug steps: - name: Checkout repository - uses: actions/checkout@v1 + uses: actions/checkout@v2.3.4 with: fetch-depth: 5 submodules: true From fff91f92a67f5cf828926d3bb462c1228e956923 Mon Sep 17 00:00:00 2001 From: James Lamb Date: Tue, 3 Nov 2020 13:06:01 -0600 Subject: [PATCH 2/4] add git to sanitizers container --- .github/workflows/cuda.yml | 2 +- .github/workflows/r_package.yml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cuda.yml b/.github/workflows/cuda.yml index 1f725b88963e..f1f85f125908 100644 --- a/.github/workflows/cuda.yml +++ b/.github/workflows/cuda.yml @@ -38,7 +38,7 @@ jobs: - name: Remove old folder with repository run: sudo rm -rf $GITHUB_WORKSPACE - name: Checkout repository - uses: actions/checkout@v1 + uses: actions/checkout@v2.3.4 with: fetch-depth: 5 submodules: true diff --git a/.github/workflows/r_package.yml b/.github/workflows/r_package.yml index e7300a373d08..60d5f715c994 100644 --- a/.github/workflows/r_package.yml +++ b/.github/workflows/r_package.yml @@ -173,6 +173,8 @@ jobs: - name: Install packages shell: bash run: | + apt-get update + apt-get install -y git Rscript -e "install.packages(c('R6', 'data.table', 'jsonlite', 'testthat'), repos = 'https://cran.r-project.org')" sh build-cran-package.sh Rdevel CMD INSTALL lightgbm_*.tar.gz || exit -1 From 0d9209b770b7adc71eb43c9dd7e4101fcbd52a6b Mon Sep 17 00:00:00 2001 From: James Lamb Date: Tue, 3 Nov 2020 14:37:20 -0600 Subject: [PATCH 3/4] install git before checkout --- .github/workflows/r_package.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/r_package.yml b/.github/workflows/r_package.yml index 60d5f715c994..9957bcdb0425 100644 --- a/.github/workflows/r_package.yml +++ b/.github/workflows/r_package.yml @@ -165,6 +165,11 @@ jobs: runs-on: ubuntu-latest container: rhub/rocker-gcc-san steps: + - name: Install Git before checkout + shell: bash + run: | + apt-get update + apt-get install -y git - name: Checkout repository uses: actions/checkout@v2.3.4 with: @@ -173,8 +178,6 @@ jobs: - name: Install packages shell: bash run: | - apt-get update - apt-get install -y git Rscript -e "install.packages(c('R6', 'data.table', 'jsonlite', 'testthat'), repos = 'https://cran.r-project.org')" sh build-cran-package.sh Rdevel CMD INSTALL lightgbm_*.tar.gz || exit -1 From 21fb9b3001150202da0e0af4613bfa0fce677c07 Mon Sep 17 00:00:00 2001 From: James Lamb Date: Tue, 3 Nov 2020 22:37:53 +0000 Subject: [PATCH 4/4] Update .github/workflows/r_package.yml Co-authored-by: Nikita Titov --- .github/workflows/r_package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/r_package.yml b/.github/workflows/r_package.yml index 9957bcdb0425..64668d44207f 100644 --- a/.github/workflows/r_package.yml +++ b/.github/workflows/r_package.yml @@ -169,7 +169,7 @@ jobs: shell: bash run: | apt-get update - apt-get install -y git + apt-get install --no-install-recommends -y git - name: Checkout repository uses: actions/checkout@v2.3.4 with: