jonkeane commented on code in PR #13149:
URL: https://github.com/apache/arrow/pull/13149#discussion_r879761798


##########
dev/tasks/r/github.nightly.yml:
##########
@@ -0,0 +1,381 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+{% import 'macros.jinja' as macros with context %}
+{% set r_root = "nightly/r" %}
+{% set webdav_domain = "https://nightly.wujciak.de:8080"; %}
+{% set repo_domain = "https://nightly.wujciak.de/r"; %}
+
+{{ macros.github_header() }}
+
+jobs:
+  source:
+    name: Source Package
+    runs-on: ubuntu-latest
+    outputs:
+      version: {{ '${{ steps.save-version.outputs.version }}' }}
+      date: {{ '${{ steps.save-version.outputs.date }}' }}
+    steps:
+      {{ macros.github_checkout_arrow()|indent }}
+      {{ macros.change_r_pkg_version()|indent }}
+      - name: Save Version
+        id: save-version
+        shell: bash
+        run: | 
+          echo "::set-output name=version::$(grep ^Version arrow/r/DESCRIPTION 
| sed s/Version:\ //)"
+          echo "::set-output name=date::$(date +%Y%m%d)"
+
+      - uses: r-lib/actions/setup-r@v2
+        with:
+          install-r: false
+
+      - name: Build R source package
+        shell: bash
+        run: |
+          cd arrow/r
+          # Copy in the Arrow C++ source
+          make sync-cpp
+          R CMD build --no-build-vignettes .
+
+      - name: Install davfs2 & Mount Repo

Review Comment:
   It is a bit of scope extension to have this able to be requested + run on 
PRs, but I do think that is a feature that would be nice to have. It would 
allow us to test some of the setup scripts that are currently un(der)-tested.
   
   And as for using a local filesystem versus a URL. Like ^^^ it would allow us 
to test source linux installs when people are getting libarrow as a binary, 
testing code like  
https://github.com/apache/arrow/blob/442b24b0b9cf11d45245564fa7448f1ca4931ae7/r/tools/nixlibs.R#L63-L85
 actually does what we want.
   
   We can do all of this as a follow on if we prefer, of course.
   
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to