diff --git a/dev/tasks/r/github.macos.autobrew.yml b/dev/tasks/r/github.macos.autobrew.yml index 28733dbfef1..990a7dae403 100644 --- a/dev/tasks/r/github.macos.autobrew.yml +++ b/dev/tasks/r/github.macos.autobrew.yml @@ -35,14 +35,20 @@ jobs: - "{{ macros.r_oldrel.ver }}" steps: {{ macros.github_checkout_arrow()|indent }} + - name: Setup hosted + if: matrix.platform != 'macos-10.13' + run: | + # minio and sccache are pre-installed on the self-hosted 10.13 runner. + # Install minio for tests. + brew install minio + brew install sccache + + # Ensure removing OpenSSL from the default paths to avoid + # mixing OpenSSL in the default paths and OpenSSL installed + # by autobrew. + brew unlink openssl || : - name: Configure autobrew script run: | - # minio and sccache are pre-installed on the self-hosted 10.13 runner - if [ {{ '${{ matrix.platform }}' }} != macos-10.13 ]; then - # install minio for tests - brew install minio - brew install sccache - fi cd arrow/r {{ macros.pin_brew_formulae(is_fork)|indent }} - uses: r-lib/actions/setup-r@v2 @@ -57,7 +63,7 @@ jobs: # between pre-installed R version on the self-hosted runners rig default {{ '${{ matrix.r-version }}' }} rig system setup-user-lib - rig system add-pak + rig system add-pak - uses: r-lib/actions/setup-r-dependencies@v2 with: working-directory: 'arrow/r' @@ -72,8 +78,10 @@ jobs: ARROW_USE_PKG_CONFIG: false ARROW_R_DEV: true FORCE_AUTOBREW: true - {{ macros.github_set_sccache_envvars()|indent(8)}} - run: arrow/ci/scripts/r_test.sh arrow + {{ macros.github_set_sccache_envvars()|indent(8)}} + run: | + find / 2>&1 | grep include/openssl || : + arrow/ci/scripts/r_test.sh arrow - name: Dump install logs run: cat arrow/r/check/arrow.Rcheck/00install.out if: always() diff --git a/dev/tasks/r/github.packages.yml b/dev/tasks/r/github.packages.yml index e3e3d34e156..c9444f82ab5 100644 --- a/dev/tasks/r/github.packages.yml +++ b/dev/tasks/r/github.packages.yml @@ -167,6 +167,11 @@ jobs: rig system setup-user-lib rig system add-pak + + # ensure removing OpenSSL from the default paths to avoid + # mixing OpenSSL in the default paths and OpenSSL installed + # by autobrew + brew unlink openssl || : {{ macros.github_setup_local_r_repo(false, true)|indent }} - name: Prepare Dependency Installation @@ -181,6 +186,9 @@ jobs: - name: Install sccache if: startsWith(matrix.platform, 'macos') run: brew install sccache + - name: Find + run: | + find / 2>&1 | grep include/openssl || : - name: Build Binary id: build shell: Rscript {0}