youknowone / apple-sys

The auto-managed -sys crate for Apple platforms using bindgen directly from build environment
BSD 2-Clause "Simplified" License
52 stars 11 forks source link

compile error on github actions macos-latest #15

Open LuckyTurtleDev opened 1 year ago

LuckyTurtleDev commented 1 year ago

Hi, I get the following compile error, if I try to compile this carte on github actions using macos-latest runner. I am using this crates as dependency from keepawake.

 error: expected item after attributes
 --> /Users/runner/work/mission2teegarden-b/mission2teegarden-b/target/debug/build/apple-sys-1fef9ac78fba900c/out/CoreFoundation.rs:3:2249
  |
3 | ... :: { self , msg_send , sel , sel_impl , class } ; # [allow (non_camel_case_types)] 
  |                                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: expected item after attributes
 --> /Users/runner/work/mission2teegarden-b/mission2teegarden-b/target/debug/build/apple-sys-1fef9ac78fba900c/out/IOKit.rs:3:2249
  |
3 | ... :: { self , msg_send , sel , sel_impl , class } ; # [allow (non_camel_case_types)] 
  |                                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: could not compile `apple-sys` (lib) due to 2 previous errors

https://github.com/LuckyTurtleDev/mission2teegarden-b/actions/runs/5466717079/jobs/9952050311?pr=130

LuckyTurtleDev commented 1 year ago

After notifying that the msrv ci has successful build. I have retry the ci and it has build now. Keep free to close the issue.

LuckyTurtleDev commented 1 year ago

Has fail again. It looks like, it does fail with a probability of 50% 30% 70%.

LuckyTurtleDev commented 1 year ago

After rust 1.71 was released it does build fine on latest (1.71) now. But at 1.70 it does always fail now. I do not understand this behavior. :confused: :question: