Skip to content
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

Enable testing on macOS #4

Merged
merged 1 commit into from
Aug 15, 2022
Merged

Enable testing on macOS #4

merged 1 commit into from
Aug 15, 2022

Conversation

yrashk
Copy link
Contributor

@yrashk yrashk commented Aug 9, 2022

The binary files were taken from homebrew bottle,
version 4.3

The binary files were taken from homebrew bottle,
version 4.3
fn get_binary_in<P: AsRef<Path>>(dir: P, name: &str) -> io::Result<path::PathBuf> {
use std::os::unix::fs::PermissionsExt;
let bin = dir.as_ref().join(name);
fs::set_permissions(bin.as_path(), fs::Permissions::from_mode(0o755))?;
Ok(bin)
}

#[cfg(all(unix, target_os = "macos"))]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have noticed that the shipped bsdiff/bspatch were dynamically linked aarch64 executables.
Maybe a target_arch = "aarch64" condition should be added here, to indicate that the legacy x86_64 support for Mac is missing at now.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May have been my omission, I thought they were universal binaries. I'll look into this to rectify the situation.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Github actions for running test has been added on the master branch, where os: macos-latest is temporarily removed because github actions seems to be lack of arm64 containers support. It might be helpful.

@hucsmn hucsmn merged commit 82bcc70 into hucsmn:master Aug 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants