From a99792c3cc9f2be6c770b95349e4ba1907b2efdc Mon Sep 17 00:00:00 2001 From: Peter Pronai Date: Wed, 15 Nov 2023 14:10:49 +0100 Subject: [PATCH] Enable JIT in most workflows. Windows x64 JIT is disabled for now. Also reports if JIT is enabled when running tests. --- .github/workflows/actions.yml | 9 +++++++-- tools/run-tests.py | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 0b7d31163..369764f1b 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -76,6 +76,7 @@ jobs: rm $GITHUB_WORKSPACE/test/wasm-spec/core/call.wast rm $GITHUB_WORKSPACE/test/wasm-spec/core/call_indirect.wast $RUNNER --engine="$GITHUB_WORKSPACE/out/clang/x64/walrus" + $RUNNER --jit --engine="$GITHUB_WORKSPACE/out/clang/x64/walrus" build-test-on-x86: runs-on: ubuntu-latest @@ -94,7 +95,9 @@ jobs: cmake -H. -Bout/linux/x86 $BUILD_OPTIONS ninja -Cout/linux/x86 - name: Run Tests - run: $RUNNER --engine="$GITHUB_WORKSPACE/out/linux/x86/walrus" + run: | + $RUNNER --engine="$GITHUB_WORKSPACE/out/linux/x86/walrus" + $RUNNER --jit --engine="$GITHUB_WORKSPACE/out/linux/x86/walrus" build-test-on-x64: runs-on: ubuntu-latest @@ -113,7 +116,9 @@ jobs: cmake -H. -Bout/linux/x64 $BUILD_OPTIONS ninja -Cout/linux/x64 - name: Run Tests - run: $RUNNER --engine="$GITHUB_WORKSPACE/out/linux/x64/walrus" + run: | + $RUNNER --engine="$GITHUB_WORKSPACE/out/linux/x64/walrus" + $RUNNER --jit --engine="$GITHUB_WORKSPACE/out/linux/x64/walrus" build-test-on-armv7: runs-on: ubuntu-latest diff --git a/tools/run-tests.py b/tools/run-tests.py index 7312e68dc..b6c5ac65c 100755 --- a/tools/run-tests.py +++ b/tools/run-tests.py @@ -204,7 +204,7 @@ def main(): success, fail = [], [] for suite in args.suite: - print(COLOR_PURPLE + 'running test suite: ' + suite + COLOR_RESET) + print(COLOR_PURPLE + f'running test suite{ " with jit" if jit else ""}: ' + suite + COLOR_RESET) try: RUNNERS[suite](args.engine) success += [suite]