PRQL / prqlc-r

R Bindings for prqlc
https://prql.github.io/prqlc-r/
Other
56 stars 2 forks source link

Support arm64 cross-compile on R-universe #246

Closed eitsupi closed 9 months ago

eitsupi commented 10 months ago

See https://github.com/mlondschien/changeforest/pull/165#issuecomment-1880436654

Currently, there is also an issue with not correctly detecting pre-built binaries.

In polars:

Run r-universe-org/build-and-check/macos-cross@v1
  with:
    sourcepkg: polars_0.12.1.9000.tar.gz
  env:
    MY_UNIVERSE: https://etiennebacher.r-universe.dev/
    GH_APP_ID: 87942
    R_HOME_CROSS: /opt/R-4.3-arm64
    PKG_CONFIG_PATH: /opt/R/x86_64/lib/pkgconfig:/opt/R/x86_64/share/pkgconfig:/usr/lib/pkgconfig:/opt/X11/lib/pkgconfig:/opt/X11/share/pkgconfig
    PROJ_LIB: /opt/R/x86_64/share/proj
    R_LIBS_USER: /Users/runner/work/_temp/Library
    TZ: UTC
    _R_CHECK_SYSTEM_CLOCK_: FALSE
    JAVA_HOME: /Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/11.0.21-9/x64/Contents/Home/
    MACOSX_DEPLOYMENT_TARGET: 11.0
Run sed -i.bak 's|x86_64-apple-darwin20|aarch64-apple-darwin20|g' $(R RHOME)/etc/Makeconf
* installing *source* package ‘polars’ ...
** using staged installation

--------------------- [SETTING FOR R-UNIVERSE] ---------------------
It seems that this is on R-universe <https://etiennebacher.r-universe.dev/>.
Trying to download pre-built binary.
--------------------------------------------------------------------

---------------- [TRY TO DOWNLOAD PRE-BUILT BINARY] ----------------
Found pre-built binary at <https://github.com/pola-rs/r-polars/releases/download/lib-v0.36.0/libr_polars-0.36.0-x86_64-apple-darwin.tar.gz>.
Downloading...
Checking SHA256 for </var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T//RtmpICrxFs/file1670368ba777.tar.gz>...
SHA256 matches for </var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T//RtmpICrxFs/file1670368ba777.tar.gz>.
Extracted pre-built binary to </private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/RtmpVh7J7E/R.INSTALL126026d484aa/polars/tools> directory.
--------------------------------------------------------------------