Skip to content

Commit

Permalink
specify target arch with cargo
Browse files Browse the repository at this point in the history
  • Loading branch information
sorhawell committed Sep 8, 2023
1 parent 6954abc commit 5a183bc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/release_cross_compiled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,8 @@ jobs:
pwd
make requirements-rs
rustup target add "$RUNNER_TARGET"
rustup default nightly-2023-07-27-aarch64-apple-darwin
cargo build --lib --profile release-optimized --manifest-path=./src/rust/Cargo.toml
mv ./src/rust/target/release-optimized/libr_polars.a ./inst/
cargo build --lib --profile release-optimized --target "$RUNNER_TARGET" --manifest-path=./src/rust/Cargo.toml
mv ./src/rust/target/"$RUNNER_TARGET"/release-optimized/libr_polars.a ./inst/
echo "$RUNNER_TARGET" > .inst/target.txt
cat .inst/target.txt
ls -l
Expand Down

0 comments on commit 5a183bc

Please sign in to comment.