From f84263deb5cd758f036bbfa834440d9294c5a5b4 Mon Sep 17 00:00:00 2001 From: Laurent Gautier Date: Mon, 15 Jan 2024 17:41:29 -0500 Subject: [PATCH] Split install for MacOS/Linux into different steps. --- .github/workflows/pythonpackage.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index 80102b5..0202a5a 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -52,13 +52,15 @@ jobs: Sys.setenv("NOT_CRAN" = "true") install.packages("arrow") shell: Rscript {0} - - name: Install R dependency "polars" + - name: Install R dependency "polars" (MacOS) + if: startsWith(matrix.os, 'MacOS') run: | - if (Sys.info()["sysname"] == "Darwin") { - install.packages("polars", repos = "https://rpolars.r-universe.dev") - } else { - install.packages("polars", repos = "https://rpolars.r-universe.dev/bin/linux/jammy/4.3") - } + install.packages("polars", repos = "https://rpolars.r-universe.dev") + shell: Rscript {0} + - name: Install R dependency "polars" (Linux) + if: startsWith(matrix.os, 'ubuntu') + run: | + install.packages("polars", repos = "https://rpolars.r-universe.dev/bin/linux/jammy/4.3") shell: Rscript {0} - name: Install dependencies run: |