From 3d7d4cd2be2b460be0eaf6954d48ff04197212fc Mon Sep 17 00:00:00 2001 From: DanielGavin Date: Sun, 9 May 2021 14:31:18 +0200 Subject: remove microarch and make it run tests in CI on linux --- README.md | 2 -- build.sh | 18 +++++++++++------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 62343a6..5fe924f 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,6 @@ # ols Language server for Odin. This project is still in early development. -**NOTE**: Linux and MacOS are not actively being supported. This will change when Odin makes them into first class citizens. - ![Procedure example](images/completion.gif) ## Table Of Contents diff --git a/build.sh b/build.sh index 8a47806..1c8236c 100755 --- a/build.sh +++ b/build.sh @@ -8,12 +8,16 @@ else fi #BUG in odin test, it makes the executable with the same name as a folder and gets confused. -#${ODIN} test tests -llvm-api +cd tests -#if [ $? -ne 0 ] -#then -# echo "Test failed" -# exit 1 -#fi +${ODIN} test ../tests -collection:shared=../src -${ODIN} build src/ -show-timings -collection:shared=src -out:ols -opt:2 -microarch=native +if ([ $? -ne 0 ] && [[ $1 == "CI" ]]) +then + echo "Test failed" + exit 1 +fi + +cd .. + +${ODIN} build src/ -show-timings -collection:shared=src -out:ols -opt:2 -- cgit v1.2.3