Fix the problem of runtime test on ci
Problem
The CI test fail frequently, even when it pass well on real environments. Mainly Windows and MacOS. Personally, the real test are more on Linux environment and a little bit on Windows.
Proposal
We can verify if the usage of cross-rs can fix this problem.
Useful links
- https://github.com/cross-rs/cross
Notice
- The CI tests don't replace the tests on real environment, but will be useful in case that the contributor can't test on other environments.
Expectations
- [ ] Pass Windows CI (all test)
- [ ] Pass Ubuntu CI (all test)
- [ ] Pass MacOS CI (all test)
It looks like Enigo has a successful running test on macOS and Windows. https://github.com/enigo-rs/enigo/blob/main/.github/workflows/integration.yml
I think we should stop our integration tests on macOS and windows. Basically, the main important part is the afrim library and the integration test is for real world test. Then, if the integration test works on Ubuntu, we don't really need to do it on other platforms.