ioneyed / tauri-plugin-highlander

13 stars 2 forks source link

Failed to build in github actions #10

Open Hellager opened 1 year ago

Hellager commented 1 year ago

as the topic says, the action failed to build tauri app in ubuntu 20.04 due to this error using this workflow Uploading the artifacts to a release

   Compiling bzip2 v0.4.3
   Compiling libappindicator v0.7.1
   Compiling webkit2gtk v0.18.0
   Compiling tauri-runtime v0.10.1
   Compiling tauri-runtime-wry v0.10.1
error[E0308]: `match` arms have incompatible types
  --> /home/runner/.cargo/git/checkouts/tauri-plugin-highlander-0e65b3865808fed3/810bd84/src/lib.rs:90:19
   |
88 |       let current_pid = match sysinfo::get_current_pid() {
   |  _______________________-
89 | |         Ok(_pid) => _pid,
   | |                     ---- this is found to be of type `i32`
90 | |         Err(_) => 0 as usize,
   | |                   ^^^^^^^^^^ expected `i32`, found `usize`
91 | |     };
   | |_____- `match` arms have incompatible types
For more information about this error, try `rustc --explain E0308`.
error: could not compile `tauri-plugin-highlander` due to previous error
warning: build failed, waiting for other jobs to finish...
ioneyed commented 1 year ago

The joys of automated emails. I didn't know anyone found this project nor tried to build on it. I will try to take a look at updating package due to some dependabot alerts and this comment as well.

Hellager commented 1 year ago

Thanks for your great job, this project really helps a lot. I have already make a pr try fix it, whick works but im not sure whether properly fix macos and linux build error