summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2019-11-22 15:26:21 -0800
committerGitHub <noreply@github.com>2019-11-22 15:26:21 -0800
commit2d1e5a0246d5b2e806ea029ec045ee6f23cf6c78 (patch)
tree02d8d797f5dd469960633acdf3a40c2acb5b56f2 /CMakeLists.txt
parent5e81015f69262657186b3f3bf03bfa28016c5a0d (diff)
downloadwabt-2d1e5a0246d5b2e806ea029ec045ee6f23cf6c78.tar.gz
wabt-2d1e5a0246d5b2e806ea029ec045ee6f23cf6c78.tar.bz2
wabt-2d1e5a0246d5b2e806ea029ec045ee6f23cf6c78.zip
Initial support for github actions (#1238)
This adds a basic workflow that builds and tests wabt on all three desktop platforms. The plan is to extend this to completely replace travis and appveyor in the future. Remove the 2.7 requirement for python in CMakeLists.txt due to issue with github actions where this ends up selected in the wrong (mingw) version of python. See: https://github.com/actions/setup-python/issues/40
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6452dc85..c4090908 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -496,7 +496,13 @@ if (NOT EMSCRIPTEN)
endif ()
# test running
- find_package(PythonInterp 2.7 REQUIRED)
+ # TODO(sbc): Requrie python3 for running tests.
+ # For now we don't set a version here due to and issue with github actions
+ # where python 2.7 is in the PATH as "python.exe" but a mingw version is
+ # installed as "python2.7.exe" and cmake will alwasy choose the later (which
+ # we don't want) if we specify 2.7 explictly here.
+ # See: https://github.com/actions/setup-python/issues/40
+ find_package(PythonInterp REQUIRED)
set(RUN_TESTS_PY ${WABT_SOURCE_DIR}/test/run-tests.py)
add_custom_target(run-tests
COMMAND $<TARGET_FILE:wabt-unittests>