Skip to content

Commit

Permalink
maybe I've correctly located the binary [generate bindings]
Browse files Browse the repository at this point in the history
  • Loading branch information
CGMossa committed Apr 24, 2024
1 parent 7d31211 commit 279e873
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit 279e873

Please sign in to comment.