Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 0 additions & 42 deletions .appveyor.yml

This file was deleted.

13 changes: 9 additions & 4 deletions .ci/test-r-package-windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -77,17 +77,22 @@ Remove-Item C:\rtools45 -Force -Recurse -ErrorAction Ignore
#
# NOTES:
# * some paths and file names are different on R4.0
$env:R_MAJOR_VERSION = $env:R_VERSION.split('.')[0]
if ($env:R_MAJOR_VERSION -eq "4") {
if ($env:R_VERSION -eq "oldest") {
# ref: https://cran.r-project.org/bin/windows/Rtools/rtools43.html
$RTOOLS_INSTALL_PATH = "C:\rtools43"
$env:RTOOLS_BIN = "$RTOOLS_INSTALL_PATH\usr\bin"
$env:RTOOLS_MINGW_BIN = "$RTOOLS_INSTALL_PATH\x86_64-w64-mingw32.static.posix\bin"
$env:RTOOLS_EXE_FILE = "rtools43-5550-5548.exe"
$env:R_WINDOWS_VERSION = "4.3.1"
} elseif ($env:R_VERSION -eq "latest") {
# ref: https://cran.r-project.org/bin/windows/Rtools/rtools45/rtools.html
$RTOOLS_INSTALL_PATH = "C:\rtools45"
$env:RTOOLS_EXE_FILE = "rtools45-6608-6492.exe"
$env:R_WINDOWS_VERSION = "4.5.1"
} else {
Write-Output "[ERROR] Unrecognized R version: $env:R_VERSION"
Assert-Output $false
}
$env:RTOOLS_BIN = "$RTOOLS_INSTALL_PATH\usr\bin"
$env:RTOOLS_MINGW_BIN = "$RTOOLS_INSTALL_PATH\x86_64-w64-mingw32.static.posix\bin"
$env:CMAKE_VERSION = "3.30.0"

$env:R_LIB_PATH = "$env:BUILD_SOURCESDIRECTORY/RLibrary" -replace '[\\]', '/'
Expand Down
29 changes: 20 additions & 9 deletions .ci/test-r-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,27 @@ if [[ $R_BUILD_TYPE != "cran" ]]; then
fi

# Get details needed for installing R components
R_MAJOR_VERSION="${R_VERSION%.*}"
if [[ "${R_MAJOR_VERSION}" == "4" ]]; then
export R_MAC_VERSION=4.3.1
export R_MAC_PKG_URL=${CRAN_MIRROR}/bin/macosx/big-sur-${ARCH}/base/R-${R_MAC_VERSION}-${ARCH}.pkg
export R_LINUX_VERSION="4.3.1-1.2204.0"
if [[ "${R_VERSION}" == "oldest" ]]; then
export R_MACOS_VERSION=4.0.5
# oldest available at https://cloud.r-project.org/bin/linux/ubuntu/jammy-cran40/
export R_LINUX_VERSION="4.2.0-1.2204.0"
export R_APT_REPO="jammy-cran40/"
elif [[ "${R_VERSION}" == "latest" ]]; then
export R_MACOS_VERSION=4.5.1
# newest available at https://cloud.r-project.org/bin/linux/ubuntu/jammy-cran40/
export R_LINUX_VERSION="4.5.1-1.2204.0"
export R_APT_REPO="jammy-cran40/"
else
echo "Unrecognized R version: ${R_VERSION}"
exit 1
fi
export R_MAC_PKG_URL=${CRAN_MIRROR}/bin/macosx/big-sur-${ARCH}/base/R-${R_MACOS_VERSION}-${ARCH}.pkg

if [[ "${OS_NAME}" == "linux" ]]; then
export R_MAJOR_MINOR="${R_LINUX_VERSION:0:3}"
else
export R_MAJOR_MINOR="${R_MACOS_VERSION:0:3}"
fi

# installing precompiled R for Ubuntu
# https://cran.r-project.org/bin/linux/ubuntu/#installation
Expand Down Expand Up @@ -163,20 +174,20 @@ set +e

used_correct_r_version=$(
cat $LOG_FILE_NAME \
| grep --count "using R version ${R_VERSION}"
| grep --count "using R version ${R_MAJOR_MINOR}"
)
if [[ $used_correct_r_version -ne 1 ]]; then
echo "Unexpected R version was used. Expected '${R_VERSION}'."
echo "Unexpected R version was used. Expected '${R_MAJOR_MINOR}'."
exit 1
fi

if [[ $R_BUILD_TYPE == "cmake" ]]; then
passed_correct_r_version_to_cmake=$(
cat $BUILD_LOG_FILE \
| grep --count "R version passed into FindLibR.cmake: ${R_VERSION}"
| grep --count "R version passed into FindLibR.cmake: ${R_MAJOR_MINOR}"
)
if [[ $passed_correct_r_version_to_cmake -ne 1 ]]; then
echo "Unexpected R version was passed into cmake. Expected '${R_VERSION}'."
echo "Unexpected R version was passed into cmake. Expected '${R_MAJOR_MINOR}'."
exit 1
fi
fi
Expand Down
97 changes: 0 additions & 97 deletions .github/workflows/cuda.yml

This file was deleted.

Loading
Loading