Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
matrix:
os: [
ubuntu-latest,
macos-13,
macos-15,
macos-14, # macOS arm runner
windows-latest,
ubuntu-24.04-arm
Expand All @@ -33,7 +33,7 @@ jobs:
# matrix:
# os: [
# ubuntu-latest,
# macos-13,
# macos-15,
# macos-14, # macOS arm runner
# windows-latest,
# ]
Expand All @@ -50,7 +50,7 @@ jobs:
strategy:
matrix:
os: [
macos-13,
macos-15,
macos-14,
ubuntu-latest,
windows-latest,
Expand All @@ -59,7 +59,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Install bison
if: ${{ matrix.os == 'macos-13' || matrix.os == 'macos-14' }}
if: ${{ matrix.os == 'macos-15' || matrix.os == 'macos-14' }}
run: |
brew install bison gcc
- name: Test from-source
Expand Down
8 changes: 8 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,14 @@ fn try_system_include_paths() -> Option<bindgen::Builder> {
}

fn main() -> Result<(), Box<dyn Error>> {
// Detect docs.rs build environment (no network access)
if env::var("DOCS_RS").is_ok() {
println!("cargo:warning=Building on docs.rs, using pre-generated bindings");
let out_path = PathBuf::from(env::var("OUT_DIR").unwrap());
std::fs::copy("src/bindings_pregenerated.rs", out_path.join("bindings.rs"))?;
return Ok(());
}

let builder = if is_bundled_feature_enabled() {
download_scip();
let path = PathBuf::from(env::var("OUT_DIR").unwrap()).join("scip_install");
Expand Down
Loading
Loading