File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414 matrix :
1515 os : [
1616 ubuntu-latest,
17- macos-13 ,
17+ macos-15 ,
1818 macos-14, # macOS arm runner
1919 windows-latest,
2020 ubuntu-24.04-arm
3333# matrix:
3434# os: [
3535# ubuntu-latest,
36- # macos-13 ,
36+ # macos-15 ,
3737# macos-14, # macOS arm runner
3838# windows-latest,
3939# ]
5050 strategy :
5151 matrix :
5252 os : [
53- macos-13 ,
53+ macos-15 ,
5454 macos-14,
5555 ubuntu-latest,
5656 windows-latest,
5959 steps :
6060 - uses : actions/checkout@v3
6161 - name : Install bison
62- if : ${{ matrix.os == 'macos-13 ' || matrix.os == 'macos-14' }}
62+ if : ${{ matrix.os == 'macos-15 ' || matrix.os == 'macos-14' }}
6363 run : |
6464 brew install bison gcc
6565 - name : Test from-source
Original file line number Diff line number Diff line change @@ -140,6 +140,14 @@ fn try_system_include_paths() -> Option<bindgen::Builder> {
140140}
141141
142142fn main ( ) -> Result < ( ) , Box < dyn Error > > {
143+ // Detect docs.rs build environment (no network access)
144+ if env:: var ( "DOCS_RS" ) . is_ok ( ) {
145+ println ! ( "cargo:warning=Building on docs.rs, using pre-generated bindings" ) ;
146+ let out_path = PathBuf :: from ( env:: var ( "OUT_DIR" ) . unwrap ( ) ) ;
147+ std:: fs:: copy ( "src/bindings_pregenerated.rs" , out_path. join ( "bindings.rs" ) ) ?;
148+ return Ok ( ( ) ) ;
149+ }
150+
143151 let builder = if is_bundled_feature_enabled ( ) {
144152 download_scip ( ) ;
145153 let path = PathBuf :: from ( env:: var ( "OUT_DIR" ) . unwrap ( ) ) . join ( "scip_install" ) ;
You can’t perform that action at this time.
0 commit comments