youknowone/apple-sys

compile error on github actions macos-latest

LuckyTurtleDev opened this issue · 3 comments

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

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.

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

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. 😕 ❓