From 279e873537c70852229aade101dd5cd240bbdb5a Mon Sep 17 00:00:00 2001 From: Mossa Date: Mon, 22 Apr 2024 13:53:15 +0200 Subject: [PATCH] maybe I've correctly located the binary [generate bindings] --- .github/workflows/test.yml | 10 ++++++++++ build.rs | 1 + 2 files changed, 11 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2b23a4c0..6640b1a6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -108,6 +108,16 @@ jobs: with: r-version: ${{ matrix.config.r }} use-public-rspm: true + - name: Print out paths for R + run: | + $r_home = rscript -e "R.home()" | Out-String + Write-Output "R home directory: $r_home" + + $r_bin = rscript -e "R.home('bin')" | Out-String + Write-Output "R bin directory: $r_bin" + + $r_include = rscript -e "R.home('include')" | Out-String + Write-Output "R include directory: $r_include" - name: Set up Rust uses: dtolnay/rust-toolchain@master diff --git a/build.rs b/build.rs index eb320c60..2f7ccc8b 100644 --- a/build.rs +++ b/build.rs @@ -203,6 +203,7 @@ fn get_r_library(r_home: &Path) -> PathBuf { // For Windows (true, "x86_64") => Path::new(r_home).join("bin").join("x64"), (true, "x86") => Path::new(r_home).join("bin").join("i386"), + (true, "aarch64") => Path::new(r_home).join("bin").join("aarch64"), (true, _) => panic!("Unknown architecture"), // For Unix-alike (false, _) => Path::new(r_home).join("lib"),