From a723949e61220347b39a4fdaad731e4bf5cddf90 Mon Sep 17 00:00:00 2001 From: eitsupi Date: Sun, 19 Jan 2025 16:43:48 +0900 Subject: [PATCH] ci: latest github actions runners has no R --- .github/workflows/release-lib.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release-lib.yml b/.github/workflows/release-lib.yml index 58d4b04e..4a80f5fc 100644 --- a/.github/workflows/release-lib.yml +++ b/.github/workflows/release-lib.yml @@ -78,9 +78,8 @@ jobs: echo 'CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc' >>"$GITHUB_ENV" echo 'CC=aarch64-linux-gnu-gcc' >>"$GITHUB_ENV" - - name: Set for macOS - # macos latest runner does't have R - if: runner.os == 'macOS' + - name: Set up R + if: runner.os != 'Windows' uses: r-lib/actions/setup-r@v2 with: use-public-rspm: true @@ -98,7 +97,7 @@ jobs: LIB_PATH="$(pwd)/rust/target/${TARGET}/${PRQLR_PROFILE}/${LIB_NAME}.a" ARTIFACT_NAME="${LIB_NAME}-${LIB_VERSION}-${TARGET}.tar.gz" - if [[ "${{ runner.os }}" == "macOS" ]]; then + if [[ "${{ runner.os }}" != "Windows" ]]; then # Rinternals header is needed pushd .. Rscript -e 'install.packages("pkgbuild")'