Skip to content

Commit 0c7b7dd

Browse files
committed
add 10.13 runners
1 parent cea68cc commit 0c7b7dd

2 files changed

Lines changed: 20 additions & 5 deletions

File tree

‎dev/tasks/macros.jinja‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,3 +321,6 @@ on:
321321
{% set is_upstream_b = arrow.github_repo == 'apache/arrow' %}
322322
{# use filter to cast to string and convert to lowercase to match yaml boolean #}
323323
{% set is_fork = (not is_upstream_b)|lower %}
324+
325+
{% set r_release = '4.2' %}
326+
{% set r_oldrel = '4.1' %}

‎dev/tasks/r/github.macos.autobrew.yml‎

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,34 @@ jobs:
2929
matrix:
3030
platform:
3131
- macos-11
32-
- macos-10.15
32+
- macos-10.13 # self-hosted
3333
r-version:
34-
- release
35-
- oldrel
34+
- {{ macros.r_release }}
35+
- {{ macros.r_oldrel }}
3636
steps:
3737
{{ macros.github_checkout_arrow()|indent }}
3838
- name: Configure autobrew script
3939
run: |
40-
# install minio for tests
41-
brew install minio
40+
# minio is pre-installed on the self-hosted 10.13 runer
41+
if [ {{ '${{ matrix.platform }}' }} != macos-10.13 ]; then
42+
# install minio for tests
43+
brew install minio
44+
fi
4245
cd arrow/r
4346
{{ macros.pin_brew_formulae(is_fork)|indent }}
4447
- uses: r-lib/actions/setup-r@v2
48+
if: {{ '${{ matrix.platform }}' }} != 'macos-10.13'
4549
with:
4650
r-version: {{ '${{ matrix.r-version }}' }}
4751
use-public-rspm: true
52+
- name: Setup R
53+
if: {{ '${{ matrix.platform }}' }} == 'macos-10.13'
54+
run: |
55+
# rig is a system utility that allows for switching
56+
# between pre-installed R version on the self-hosted runners
57+
rig default {{ '${{ matrix.platform }}' }}
58+
rig system setup-user-lib
59+
rig system add-pak
4860
- uses: r-lib/actions/setup-r-dependencies@v2
4961
with:
5062
working-directory: 'arrow/r'

0 commit comments

Comments
 (0)