Skip to content

Commit

Permalink
Merge pull request #449 from ArkScript-lang/ci/modules
Browse files Browse the repository at this point in the history
Re-enable modules tests in the CI
  • Loading branch information
SuperFola authored May 7, 2024
2 parents 21b465c + e3215a5 commit d827b15
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 16 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,15 @@ jobs:
run: |
mkdir -p artifact/lib/std
# Linux/MacOS
cp build/arkscript artifact || true
cp build/libArkReactor.* artifact || true
if [[ '${{ startsWith(matrix.config.os, 'ubuntu') }}' == 'true' ]] || [[ '${{ startsWith(matrix.config.os, 'macos') }}' == 'true' ]]; then
cp build/arkscript artifact || true
cp build/libArkReactor.* artifact || true
fi
# Windows
cp build/$BUILD_TYPE/arkscript.exe artifact || true
cp build/$BUILD_TYPE/ArkReactor.dll artifact || true
if [[ '${{ startsWith(matrix.config.os, 'windows') }}' == 'true' ]]; then
cp build/$BUILD_TYPE/arkscript.exe artifact || true
cp build/$BUILD_TYPE/ArkReactor.dll artifact || true
fi
# Generic
cp lib/*.arkm artifact/lib
cp lib/std/*.ark artifact/lib/std
Expand Down Expand Up @@ -178,12 +182,12 @@ jobs:
export ASAN_OPTIONS=detect_odr_violation=0
(cd tests/arkscript ; bash ./run-tests)
# FIXME: re-enable later on
#- name: Modules tests
# shell: bash
# run: |
# export ASAN_OPTIONS=detect_odr_violation=0
# (source ./lib/modules/.github/run-tests)
- name: Modules tests
shell: bash
run: |
export ASAN_OPTIONS=detect_odr_violation=0
chmod u+x ./lib/modules/.github/run-tests
(./lib/modules/.github/run-tests src)
- name: Runtime error message generation tests
shell: bash
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/setup-compilers/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ runs:
-DCMAKE_C_COMPILER=${{ steps.compilers.outputs.cc }} \
-DCMAKE_CXX_COMPILER=${{ steps.compilers.outputs.cxx }} \
-DARK_SANITIZERS=${{ inputs.sanitizers }} \
-DARK_BUILD_EXE=On -DARK_BUILD_MODULES=On -DARK_MOD_ALL=Off -DARK_TESTS=On
cmake --build build --config $BUILD_TYPE -- -j $(nproc)
-DARK_BUILD_EXE=On -DARK_BUILD_MODULES=On -DARK_MOD_ALL=On -DARK_MOD_DRAFT=On -DARK_TESTS=On
cmake --build build --config $BUILD_TYPE -j $(nproc)
- name: Configure CMake Ark
if: startsWith(inputs.os_name, 'windows')
Expand All @@ -103,5 +103,5 @@ runs:
-G "Visual Studio 17 2022" -T v143 \
-DCMAKE_BUILD_TYPE=$BUILD_TYPE \
-DARK_SANITIZERS=${{ matrix.config.sanitizers }} \
-DARK_BUILD_EXE=On -DARK_BUILD_MODULES=On -DARK_MOD_ALL=Off -DARK_TESTS=On $additional_args
cmake --build build --config $BUILD_TYPE
-DARK_BUILD_EXE=On -DARK_BUILD_MODULES=On -DARK_MOD_ALL=On -DARK_MOD_DRAFT=On -DARK_TESTS=On $additional_args
cmake --build build --config $BUILD_TYPE -j $(nproc)
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ if (UNIX OR LINUX)
endif ()

# configuring Constants.hpp
message(STATUS "ArkScript version ${ARK_VERSION_MAJOR}.${ARK_VERSION_MINOR}.${ARK_VERSION_PATCH}")
message(STATUS "ArkScript version ${ARK_VERSION_MAJOR}.${ARK_VERSION_MINOR}.${ARK_VERSION_PATCH}-${ARK_COMMIT}")
configure_file(
${ark_SOURCE_DIR}/include/Ark/Constants.hpp.in
${ark_SOURCE_DIR}/include/Ark/Constants.hpp)
Expand Down
2 changes: 1 addition & 1 deletion lib/modules
Submodule modules updated 69 files
+1 −1 .github/run-tests
+41 −38 .github/workflows/ci.yml
+5 −0 .gitignore
+12 −41 CMakeLists.txt
+9 −2 README.md
+4 −0 draft/CMakeLists.txt
+2 −7 draft/database/CMakeLists.txt
+0 −0 draft/database/documentation/README.md
+0 −0 draft/database/include/database.hpp
+0 −0 draft/database/src/main.cpp
+0 −0 draft/database/src/sqlite3.cpp
+0 −0 draft/database/tests/main.ark
+0 −0 draft/database/tests/run
+3 −8 draft/http/CMakeLists.txt
+0 −0 draft/http/bulk_req.py
+1 −1 draft/http/documentation/README.md
+7 −7 draft/http/documentation/client.md
+27 −27 draft/http/documentation/server.md
+0 −0 draft/http/include/http_module.hpp
+0 −0 draft/http/src/client.cpp
+0 −0 draft/http/src/main.cpp
+0 −0 draft/http/src/server.cpp
+0 −0 draft/http/src/utils.cpp
+0 −0 draft/http/tests/main.ark
+0 −0 draft/http/tests/run
+2 −7 draft/json/CMakeLists.txt
+0 −0 draft/json/documentation/README.md
+2 −2 draft/json/src/main.cpp
+0 −0 draft/json/tests/main.ark
+0 −0 draft/json/tests/run
+0 −0 draft/json/tests/test.json
+2 −7 draft/msgpack/CMakeLists.txt
+1 −1 draft/msgpack/documentation/Readme.md
+0 −0 draft/msgpack/include/adaptor.hpp
+0 −0 draft/msgpack/include/ark_msgpack.hpp
+0 −0 draft/msgpack/include/objects.hpp
+0 −0 draft/msgpack/include/pack.hpp
+0 −0 draft/msgpack/include/unpack.hpp
+0 −0 draft/msgpack/src/main.cpp
+0 −1 draft/msgpack/src/objects.cpp
+0 −0 draft/msgpack/src/pack.cpp
+0 −0 draft/msgpack/src/unpack.cpp
+0 −0 draft/msgpack/tests/main.ark
+0 −0 draft/msgpack/tests/run
+3 −10 shell/createmodules/Template_CMakeLists.txt
+1 −1 shell/createmodules/create.py
+4 −0 src/CMakeLists.txt
+2 −7 src/bitwise/CMakeLists.txt
+5 −5 src/bitwise/documentation/README.md
+0 −0 src/bitwise/src/main.cpp
+0 −0 src/bitwise/tests/main.ark
+0 −0 src/bitwise/tests/run
+2 −7 src/console/CMakeLists.txt
+2 −2 src/console/documentation/README.md
+0 −0 src/console/src/main.cpp
+0 −0 src/console/tests/main.ark
+0 −0 src/console/tests/run
+2 −7 src/hash/CMakeLists.txt
+2 −2 src/hash/documentation/README.md
+0 −0 src/hash/include/md5.hpp
+1 −1 src/hash/src/main.cpp
+0 −0 src/hash/src/md5.cpp
+0 −0 src/hash/tests/main.ark
+0 −0 src/hash/tests/run
+2 −7 src/random/CMakeLists.txt
+1 −1 src/random/documentation/README.md
+0 −0 src/random/src/main.cpp
+0 −0 src/random/tests/main.ark
+0 −0 src/random/tests/run

0 comments on commit d827b15

Please sign in to comment.