Closed SichangHe closed 1 year ago
To be specific, I am trying to solve this issue from mdbook-katex.
Since quickjs crate only supports Windows when using MinGW/MSYS2, it is recommended to use duktape backend on Windows. For example, you can follow the below example in Cargo.toml
.
To use quickjs backend on Windows, it is actually easier to build it on Linux with cross-compilation. That is also another reason why it is better to use duktape backend on Windows. For your problem specifically, I think it may be due to incompatible patch program. Can you try to install gnu patch?
Thank you for your early response.
I am not familiar with Windows build support, nor do I have a Windows machine to test on. Could you provide more information on using GNA Patch in Windows CIs?
Meanwhile, I will try the first approach you provide.
Steven Hé (Sīchàng)
If you use CI and want to use quickjs, I suggest to use cross-compilation. You can use the following as an example:
Again, I suggest to use duktape, which is much easier.
It seem like duktape did not work. This is the commit. Did I do anything wrong?
You need to remove "Setup msys64 and mingw64" step as well as --target x86_64-pc-windows-gnu
in cargo build
.
Testing katex in Windows CI failed though testing quick-js alone succeeded.
I am trying to fix the CI test of mdbook-katex.
Below is the log from testing a dummy crate with only
katex
as its dependency:Since testing the dummy crate with only
quick-js
andlibquickjs-sys
succeeded, the above failure must have something to do withkatex
. I cannot figure out what made the difference though.