Apache DataFusion SQL Query Engine
ARROW-8804: [R][CI] Followup to Rtools40 upgrade
Neal Richardsoncba0b69dd80e
diff --git a/.github/workflows/r.yml b/.github/workflows/r.ymlindex 918c9224cd..a5f7503ff0 100644--- a/.github/workflows/r.yml+++ b/.github/workflows/r.yml@@ -182,8 +182,10 @@ jobs:r-version: '3.6'Ncpus: 2- name: Build Arrow C++- run: |- C:\rtools40\usr\bin\bash --login -c "export RTOOLS_VERSION=${{ matrix.rtools }} && cd /d/a/arrow/arrow && ci/scripts/r_windows_build.sh"+ shell: bash+ env:+ RTOOLS_VERSION: ${{ matrix.rtools }}+ run: ci/scripts/r_windows_build.sh- uses: actions/upload-artifact@v1with:name: Rtools ${{ matrix.rtools }} Arrow C++diff --git a/ci/scripts/r_windows_build.sh b/ci/scripts/r_windows_build.shindex 2e8e87dd16..a8bb209ded 100755--- a/ci/scripts/r_windows_build.sh+++ b/ci/scripts/r_windows_build.sh@@ -43,8 +43,8 @@ DST_DIR="arrow-$VERSION"# Collect the build artifacts and make the shape of zip file that rwinlib expectsls-mkdir build-cp mingw* build+mkdir -p build+mv mingw* buildcd build# This may vary by system/CI provider@@ -54,10 +54,13 @@ ls $MSYS_LIB_DIR/mingw64/lib/ls $MSYS_LIB_DIR/mingw32/lib/# Untar the two builds we made-ls | xargs -n 1 tar -xJf-mkdir $DST_DIR+ls *.xz | xargs -n 1 tar -xJf+mkdir -p $DST_DIR# Grab the headers from one, either one is fine-mv mingw64/include $DST_DIR+# (if we're building twice to combine old and new toolchains, this may already exist)+if [ ! -d $DST_DIR/include ]; then+ mv mingw64/include $DST_DIR+fi# Make the rest of the directory structure# lib-4.9.3 is for libraries compiled with gcc 4.9 (Rtools 3.5)