Improved testing

* Refactored workflows to use a single workflow for both VM and non-VM builds
  * Compiler tests are now able to test compilation of different architectures
This commit is contained in:
kobalicek
2023-03-11 00:30:50 +01:00
parent d7edac813a
commit c1019f1642
8 changed files with 388 additions and 248 deletions

View File

@@ -4,7 +4,7 @@
// SPDX-License-Identifier: Zlib
#include <asmjit/core.h>
#if !defined(ASMJIT_NO_AARCH64) && ASMJIT_ARCH_ARM == 64
#if !defined(ASMJIT_NO_COMPILER) && !defined(ASMJIT_NO_AARCH64)
#include <asmjit/a64.h>
#include <stdio.h>
@@ -21,7 +21,7 @@ using namespace asmjit;
class A64TestCase : public TestCase {
public:
A64TestCase(const char* name = nullptr)
: TestCase(name) {}
: TestCase(name, Arch::kAArch64) {}
virtual void compile(BaseCompiler& cc) override {
compile(static_cast<a64::Compiler&>(cc));
@@ -687,4 +687,4 @@ void compiler_add_a64_tests(TestApp& app) {
app.addT<A64Test_JumpTable>();
}
#endif // !ASMJIT_NO_AARCH64 && ASMJIT_ARCH_ARM == 64
#endif // !ASMJIT_NO_COMPILER && !ASMJIT_NO_AARCH64