Apache DataFusion SQL Query Engine
ARROW-8179: [R] Windows build script tweaking for nightly packaging on GHA
Neal Richardsone2b1490c1993
diff --git a/ci/scripts/PKGBUILD b/ci/scripts/PKGBUILDindex 133da043eb..02ae876109 100644--- a/ci/scripts/PKGBUILD+++ b/ci/scripts/PKGBUILD@@ -36,7 +36,7 @@ options=("staticlibs" "strip" "!buildflags")# For installing from a local checkout, set source_dir to . and don't include# a "source" param below-source_dir="$GITHUB_WORKSPACE"+source_dir="$ARROW_HOME"# else# source_dir=apache-${_realname}-${pkgver}diff --git a/ci/scripts/r_windows_build.sh b/ci/scripts/r_windows_build.shindex 2d917c71ba..04fe70c328 100644--- a/ci/scripts/r_windows_build.sh+++ b/ci/scripts/r_windows_build.sh@@ -19,6 +19,10 @@set -x+: ${ARROW_HOME:=$(pwd)}+# Make sure it is absolute and exported+export ARROW_HOME="$(cd "${ARROW_HOME}" && pwd)"+pacman --sync --noconfirm ccachewget https://raw.githubusercontent.com/r-windows/rtools-backports/master/pacman.conf@@ -36,12 +40,15 @@ rm -f /mingw32/lib/*.dll.arm -f /mingw64/lib/*.dll.aexport PKG_CONFIG="/${MINGW_PREFIX}/bin/pkg-config --static"-cp ci/scripts/PKGBUILD .+cp $ARROW_HOME/ci/scripts/PKGBUILD .export PKGEXT='.pkg.tar.xz' # pacman default changed to .zst in 2020, but keep the old ext for compatunset BOOST_ROOTprintenvmakepkg-mingw --noconfirm --noprogressbar --skippgpcheck --nocheck --syncdeps --cleanbuild+VERSION=$(grep Version $ARROW_HOME/r/DESCRIPTION | cut -d " " -f 2)+DST_DIR="arrow-$VERSION"+# Collect the build artifacts and make the shape of zip file that rwinlib expectslsmkdir build@@ -54,9 +61,6 @@ MSYS_LIB_DIR="D:/a/_temp/msys/msys64"ls $MSYS_LIB_DIR/mingw64/lib/ls $MSYS_LIB_DIR/mingw32/lib/-VERSION=$(grep Version ../r/DESCRIPTION | cut -d " " -f 2)-DST_DIR="arrow-$VERSION"-# Untar the two builds we madels | xargs -n 1 tar -xJfmkdir $DST_DIR