This is an automated email from the ASF dual-hosted git repository.

paleolimbot pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-nanoarrow.git


The following commit(s) were added to refs/heads/main by this push:
     new 691df78  chore: fix R package source upload in packaging workflow 
(#119)
691df78 is described below

commit 691df7894df1d837d7ceb01ce3ddf04163380722
Author: Dewey Dunnington <[email protected]>
AuthorDate: Fri Feb 24 11:29:31 2023 -0400

    chore: fix R package source upload in packaging workflow (#119)
---
 .github/workflows/packaging.yaml | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/.github/workflows/packaging.yaml b/.github/workflows/packaging.yaml
index 6f3b87c..dc2449c 100644
--- a/.github/workflows/packaging.yaml
+++ b/.github/workflows/packaging.yaml
@@ -220,18 +220,18 @@ jobs:
       - name: Build R Source Package
         shell: bash
         run : |
-          pushd nanoarrow/r
-          # If we're about to build a non-SNAPSHOT version, update the
-          # Version: field in DESCRIPTION
-          Rscript -e 'if (grepl("-SNAPSHOT$", Sys.getenv("VERSION"))) 
desc::desc_set(Version = Sys.getenv("VERSION"))'
-          ./configure
-          popd
+          # Install the package from source. This will generate and copy the
+          # latest nanoarrow C bundle as well.
+          R CMD INSTALL nanoarrow/r --preclean
 
-          Rscript -e 'pkgbuild::build("nanoarrow/r")'
+          # Make a directory just for the output tarball to simplify the
+          # upload-artifact step.
+          mkdir nanoarrow-r-pkg && cd nanoarrow-r-pkg
+          R CMD build ../nanoarrow/r
 
       - uses: actions/upload-artifact@v3
         with:
           name: r-source
           retention-days: 7
           path: |
-            nanoarrow/nanoarrow_0.0.0.9000.tar.gz
+            nanoarrow-r-pkg/*.tar.gz

Reply via email to