Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 4.3k
GH-37923: [R] Move macOS build system to nixlibs.R#37684
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
d0437235684883f54d112fffcaabf0200247e510fa0968bbc6ebbb19e48c4c9666c8af0948defed105a87dd95d2f22491803a318cbf641ff90010533bae0eef5eae5f6e122708992a181291fa282ccfad229116c1f6c1553ded21c960fbbe2f5cf07ded46f1f68ddf393d1a8f84e3648550c9360bd9d3b122bf4fe21f51bd72b6b62773faa854a47ced536b3b150b8a01e8e953f555b53b760a0fbc4b875bb196599b02310bdef977b8430653308de0b1cdea29396fe22a0d9b80f4595cd473bc07a72d729a82642433995d2984ea4bb76c860635af67528a26a040aac74a8af6df174d0887b2e01b82138f9d3e87d696734c19ac56aa5ab32f11d2d2e4d94e14ea558b5239d1e6a127e99cfe8aeca2134File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| diff --git a/snappy.cc b/snappy.cc | ||
| index d414718..5b0d0d6 100644 | ||
| --- a/snappy.cc | ||
| +++ b/snappy.cc | ||
| @@ -83,6 +83,7 @@ | ||
| #include <string> | ||
| #include <utility> | ||
| #include <vector> | ||
| +#include <functional> | ||
assignUser marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| namespace snappy { | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -101,9 +101,8 @@ ARROW_RAPIDJSON_BUILD_VERSION=232389d4f1012dddec4ef84861face2d2ba85709 | ||
| ARROW_RAPIDJSON_BUILD_SHA256_CHECKSUM=b9290a9a6d444c8e049bd589ab804e0ccf2b05dc5984a19ed5ae75d090064806 | ||
| ARROW_RE2_BUILD_VERSION=2022-06-01 | ||
| ARROW_RE2_BUILD_SHA256_CHECKSUM=f89c61410a072e5cbcf8c27e3a778da7d6fd2f2b5b1445cd4f4508bee946ab0f | ||
| # 1.1.9 is patched to implement https://github.com/google/snappy/pull/148 if this is bumped, remove the patch | ||
assignUser marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| ARROW_SNAPPY_BUILD_VERSION=1.1.9 | ||
| ARROW_SNAPPY_BUILD_SHA256_CHECKSUM=75c1fbb3d618dd3a0483bff0e26d0a92b495bbe5059c8b4f1c962b478b6e06e7 | ||
| ARROW_SNAPPY_BUILD_VERSION=1.1.10 | ||
| ARROW_SNAPPY_BUILD_SHA256_CHECKSUM=49d831bffcc5f3d01482340fe5af59852ca2fe76c3e05df0e67203ebbe0f1d90 | ||
| ARROW_SUBSTRAIT_BUILD_VERSION=v0.27.0 | ||
| ARROW_SUBSTRAIT_BUILD_SHA256_CHECKSUM=4ed375f69d972a57fdc5ec406c17003a111831d8640d3f1733eccd4b3ff45628 | ||
| ARROW_S2N_TLS_BUILD_VERSION=v1.3.35 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -56,6 +56,59 @@ jobs: | ||
| name: r-pkg__src__contrib | ||
| path: arrow/r/arrow_*.tar.gz | ||
| macos-cpp: | ||
| name: C++ Binary macOS OpenSSL {{ '${{ matrix.openssl }}' }} {{ '${{ matrix.platform.arch }}' }} | ||
| runs-on: {{ '${{ matrix.platform.runs_on }}' }} | ||
| needs: source | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| platform: | ||
| - { runs_on: ["self-hosted", "macos-10.13"], arch: "x86_64" } | ||
| - { runs_on: ["self-hosted", "macOS", "arm64", "devops-managed"], arch: "arm64" } | ||
| openssl: ['3.0', '1.1'] | ||
| steps: | ||
| {{ macros.github_checkout_arrow(action_v="3")|indent }} | ||
| {{ macros.github_change_r_pkg_version(is_fork, '${{ needs.source.outputs.pkg_version }}')|indent }} | ||
| - name: Install Deps | ||
| if: {{ "${{ !contains(matrix.platform.runs_on, 'macos-10.13') }}" }} | ||
| run: | | ||
| brew install sccache ninja | ||
| brew install openssl@{{ '${{ matrix.openssl }}' }} | ||
| - name: Build libarrow | ||
| shell: bash | ||
| env: | ||
| {{ macros.github_set_sccache_envvars()|indent(8) }} | ||
| MACOSX_DEPLOYMENT_TARGET: "10.13" | ||
| ARROW_S3: ON | ||
| ARROW_GCS: ON | ||
| ARROW_DEPENDENCY_SOURCE: BUNDLED | ||
| CMAKE_GENERATOR: Ninja | ||
| LIBARROW_MINIMAL: false | ||
| run: | | ||
| sccache --start-server | ||
| export EXTRA_CMAKE_FLAGS="-DOPENSSL_ROOT_DIR=$(brew --prefix openssl@{{ '${{ matrix.openssl }}' }})" | ||
| cd arrow | ||
| r/inst/build_arrow_static.sh | ||
| - name: Bundle libarrow | ||
| shell: bash | ||
| env: | ||
| PKG_FILE: arrow-{{ '${{ needs.source.outputs.pkg_version }}' }}.zip | ||
| VERSION: {{ '${{ needs.source.outputs.pkg_version }}' }} | ||
| run: | | ||
| cd arrow/r/libarrow/dist | ||
| zip -r $PKG_FILE lib/ include/ | ||
| - name: Upload binary artifact | ||
| uses: actions/upload-artifact@v3 | ||
| with: | ||
| name: r-lib__libarrow__bin__darwin-{{ '${{ matrix.platform.arch }}' }}-openssl-{{ '${{ matrix.openssl }}' }} | ||
| path: arrow/r/libarrow/dist/arrow-*.zip | ||
| linux-cpp: | ||
| name: C++ Binary Linux OpenSSL {{ '${{ matrix.openssl }}' }} | ||
| runs-on: ubuntu-latest | ||
| @@ -135,7 +188,7 @@ jobs: | ||
| path: build/arrow-*.zip | ||
| r-packages: | ||
| needs: [source, windows-cpp] | ||
| needs: [source, windows-cpp, macos-cpp] | ||
| name: {{ '${{ matrix.platform.name }} ${{ matrix.r_version.r }}' }} | ||
| runs-on: {{ '${{ matrix.platform.runs_on }}' }} | ||
| strategy: | ||
| @@ -167,7 +220,7 @@ jobs: | ||
| rig system setup-user-lib | ||
| rig system add-pak | ||
| {{ macros.github_setup_local_r_repo(false, true)|indent }} | ||
| {{ macros.github_setup_local_r_repo(false, true, true)|indent }} | ||
| - name: Prepare Dependency Installation | ||
| shell: bash | ||
| @@ -178,18 +231,19 @@ jobs: | ||
| with: | ||
| working-directory: 'arrow' | ||
| extra-packages: cpp11 | ||
| - name: Install sccache | ||
| if: startsWith(matrix.platform, 'macos') | ||
| run: brew install sccache | ||
| - name: Set CRAN like openssl | ||
| if: contains(matrix.platform.runs_on, 'arm64') | ||
| run: | | ||
| # The arm64 runners contain openssl 1.1.1t in this path that is always included first so we need to override the | ||
| # default setting of the brew --prefix as root dir to avoid version conflicts. | ||
| echo "OPENSSL_ROOT_DIR=/opt/R/arm64" >> $GITHUB_ENV | ||
| - name: Build Binary | ||
| id: build | ||
| shell: Rscript {0} | ||
| env: | ||
| NOT_CRAN: "true" # actions/setup-r sets this implicitly | ||
| NOT_CRAN: "false" # actions/setup-r sets this implicitly | ||
assignUser marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| ARROW_R_DEV: "true" | ||
| FORCE_AUTOBREW: "true" # this is ignored on windows | ||
| # sccache for macos | ||
| {{ macros.github_set_sccache_envvars()|indent(8) }} | ||
| LIBARROW_BINARY: "true" # has to be set as long as allowlist not updated | ||
| run: | | ||
| on_windows <- tolower(Sys.info()[["sysname"]]) == "windows" | ||
| @@ -213,8 +267,10 @@ jobs: | ||
| INSTALL_opts = INSTALL_opts | ||
| ) | ||
| # Test | ||
| library(arrow) | ||
| arrow_info() | ||
| read_parquet(system.file("v0.7.1.parquet", package = "arrow")) | ||
| # encode contrib.url for artifact name | ||
| @@ -233,7 +289,6 @@ jobs: | ||
| with: | ||
| name: r-pkg{{ '${{ steps.build.outputs.path }}' }} | ||
| path: arrow_* | ||
| test-linux-binary: | ||
| needs: [source, linux-cpp] | ||
| name: Test binary {{ '${{ matrix.config.image }}' }} | ||
| @@ -291,7 +346,10 @@ jobs: | ||
| with: | ||
| name: r-pkg_centos7 | ||
| path: arrow_* | ||
assignUser marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| test-centos-binary: | ||
| # arrow binary package not on ppm currently see #37922 | ||
| if: false | ||
| needs: test-linux-binary | ||
| runs-on: ubuntu-latest | ||
| container: "rstudio/r-base:4.2-centos7" | ||
| @@ -317,7 +375,8 @@ jobs: | ||
| read_parquet(system.file("v0.7.1.parquet", package = "arrow")) | ||
| print(arrow_info()) | ||
| test-source: | ||
| #TODO test macos source build? | ||
| test-linux-source: | ||
| needs: source | ||
| name: Test linux source build | ||
| runs-on: ubuntu-latest | ||
| @@ -367,7 +426,7 @@ jobs: | ||
| upload-binaries: | ||
| # Only upload binaries if all tests pass. | ||
| needs: [r-packages, test-source, test-linux-binary, test-centos-binary] | ||
| needs: [r-packages, test-linux-source, test-linux-binary] | ||
| name: Upload artifacts | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -994,6 +994,10 @@ tasks: | ||
| - r-lib__libarrow__bin__linux-openssl-1.0__arrow-{no_rc_r_version}\.zip | ||
| - r-lib__libarrow__bin__linux-openssl-1.1__arrow-{no_rc_r_version}\.zip | ||
| - r-lib__libarrow__bin__linux-openssl-3.0__arrow-{no_rc_r_version}\.zip | ||
| - r-lib__libarrow__bin__darwin-arm64-openssl-1.1__arrow-{no_rc_r_version}\.zip | ||
| - r-lib__libarrow__bin__darwin-arm64-openssl-3.0__arrow-{no_rc_r_version}\.zip | ||
| - r-lib__libarrow__bin__darwin-x86_64-openssl-1.1__arrow-{no_rc_r_version}\.zip | ||
| - r-lib__libarrow__bin__darwin-x86_64-openssl-3.0__arrow-{no_rc_r_version}\.zip | ||
assignUser marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| - r-pkg__bin__windows__contrib__4.1__arrow_{no_rc_r_version}\.zip | ||
| - r-pkg__bin__windows__contrib__4.2__arrow_{no_rc_r_version}\.zip | ||
| - r-pkg__bin__macosx__contrib__4.1__arrow_{no_rc_r_version}\.tgz | ||
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.