NOTE: This is an update to Plugin tests are failing on Apple Silicon. I also submitted it to YouTrack as IDEA-304723, but it's not really an IntelliJ bug.
I have an IDEA plugin that has failing unit tests on a new Apple Silicon MacBook, but these tests pass on AMD64 platforms, including an older MacBook and a GitHub Actions runner. All three tests appear to be failing due to an error loading the JNA library. The plugin itself works on all platforms, the only problem is with these tests.
The failing tests all pass on Apple Silicon if I use a JUnit run configuration in IntelliJ instead of just running `gradlew :test`. So, this appears to be a Gradle configuration issue, but I cannot figure out where the problem is. The plugin supports IDEA 2022.1+, and is being built against IC-2022.1 with Gradle IntelliJ Plugin v1.9.0, so Apple Silicon should be fully supported.
Please see build.gradle.kts and issues/1 in the plugin GitHub repo for more details (sorry, I can't figure out how to paste code here without completely breaking formatting).