Skip to content

Commit

Permalink
feat: using cmake on test
Browse files Browse the repository at this point in the history
  • Loading branch information
igormcoelho committed Nov 13, 2023
1 parent 5b9e109 commit 7d81631
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/multiplatform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: ilammy/msvc-dev-cmd@v1
- name: Install ninja-build (Ubuntu)
if: contains(matrix.os, 'ubuntu')
run: |
sudo apt-get install ninja-build -y
- name: Git Submodules
run: |
git submodule update --init --recursive
Expand All @@ -50,12 +54,12 @@ jobs:
shell: bash
run: |
make load_thirdparty
- name: make test_local
- name: make optframe_lib_cmake
shell: bash
run: |
make test_local
make optframe_lib_cmake
- name: make test_package
shell: bash
run: |
make test_local
make test_package
11 changes: 9 additions & 2 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ optframe_lib:
#
#readelf -s build/optframe_lib.so | grep fcore

optframe_lib_cmake:
@echo "BUILD WITH CL (default)"
cmake -S. -Bbuild -GNinja
ninja -Cbuild
mv optframe/liboptframe_lib.so optframe/optframe_lib.so


publish_test:
rm -f dist/*
python -m build
Expand All @@ -61,7 +68,7 @@ demo_local_tiny: optframe/optframe_lib.so
docs:
cd docs && make clean && make html

test_local: load_thirdparty optframe_lib
test_local: load_thirdparty
echo ""
echo "Running DEV Demos as tests..."
echo ""
Expand All @@ -70,7 +77,7 @@ test_local: load_thirdparty optframe_lib
(cd demo/03_QuickstartTSP_VNS_BRKGA/ && ./join.sh && python3 dev-mainTSP-fcore-ils.py > /dev/null)
echo "Finished 'make test_local'"

test: test_local test_package
test: optframe_lib test_local test_package

test_package: clean install
# (cd demo/ && python3 demo_pyfcore.py)
Expand Down

0 comments on commit 7d81631

Please sign in to comment.