-
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: updating the workflows to use the new target and remove the parse…
…r one
- Loading branch information
Showing
2 changed files
with
16 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,7 +62,7 @@ jobs: | |
build: | ||
runs-on: ${{ matrix.config.os }} | ||
name: ${{ matrix.config.name }} | ||
needs: [ check ] | ||
needs: [ ] | ||
|
||
strategy: | ||
fail-fast: false | ||
|
@@ -142,7 +142,7 @@ jobs: | |
-DCMAKE_C_COMPILER=${{ matrix.config.cc }} \ | ||
-DCMAKE_CXX_COMPILER=${{ matrix.config.cxx }} \ | ||
-DARK_SANITIZERS=${{ matrix.config.sanitizers }} \ | ||
-DARK_BUILD_EXE=On -DARK_BUILD_MODULES=On -DARK_MOD_ALL=On -DARK_BUILD_PARSER_TESTS=On | ||
-DARK_BUILD_EXE=On -DARK_BUILD_MODULES=On -DARK_MOD_ALL=On -DARK_TESTS=On | ||
- name: Add SQLite deps | ||
if: startsWith(matrix.config.name, 'Windows') | ||
|
@@ -156,6 +156,7 @@ jobs: | |
shell: bash | ||
run: cmake --build build --config $BUILD_TYPE | ||
|
||
# TODO: remove this to put all the tests under tests/unittests | ||
- name: Configure & build CMake Integration tests | ||
shell: bash | ||
run: | | ||
|
@@ -173,11 +174,9 @@ jobs: | |
mkdir -p artifact/lib/std | ||
# Linux/MacOS | ||
cp build/arkscript artifact || true | ||
cp build/parser artifact || true | ||
cp build/libArkReactor.* artifact || true | ||
# Windows | ||
cp build/$BUILD_TYPE/arkscript.exe artifact || true | ||
cp build/$BUILD_TYPE/parser.exe artifact || true | ||
cp build/$BUILD_TYPE/ArkReactor.dll artifact || true | ||
# Generic | ||
cp lib/*.arkm artifact/lib | ||
|
@@ -187,9 +186,11 @@ jobs: | |
- name: Organize temp artifact | ||
shell: bash | ||
run: | | ||
mkdir -p temp/parser/ | ||
cp build/unittests artifact || true | ||
cp build/$BUILD_TYPE/unittests.exe artifact || true | ||
mkdir -p temp/unittests/ | ||
cp -r tests/cpp temp/ | ||
cp -r tests/parser temp/ | ||
cp -r tests/unittests temp/ | ||
- name: Upload artifact | ||
uses: actions/[email protected] | ||
|
@@ -235,18 +236,20 @@ jobs: | |
- name: Setup tests | ||
uses: ./.github/workflows/setup-tests | ||
|
||
- name: Parser tests | ||
- name: Unit tests | ||
shell: bash | ||
run: | | ||
export ASAN_OPTIONS=detect_odr_violation=0 | ||
(cd tests/parser/tests ; bash ./run) | ||
unittests * | ||
# TODO: move to tests/unittests | ||
- name: Integration tests | ||
shell: bash | ||
run: | | ||
export ASAN_OPTIONS=detect_odr_violation=0 | ||
(cd tests/cpp ; bash ./run-tests) | ||
# TODO: move to tests/unittests | ||
- name: AST tests | ||
shell: bash | ||
run: | | ||
|
@@ -259,12 +262,14 @@ 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) | ||
|
||
# TODO: move to tests/unittests | ||
- name: Runtime error message generation tests | ||
shell: bash | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters