diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 000000000..d14bea4e6 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,3 @@ +build +.dockerignore +Dockerfile diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..36922dc78 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,49 @@ +name: CI tests + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + max-parallel: 1 + matrix: + python-version: [3.7] + + steps: + - uses: actions/checkout@v1 + - name: Get Cmake version + run: | + cmake --version + - name: Update submodules + run: | + git submodule init + git submodule update + - name: Install dependencies + run: | + sudo apt-get install libjansson-dev + sudo apt-get install libhdf5-dev + sudo apt-get install python3-dev + sudo apt-get install python3-numpy + sudo apt-get install python3-yaml + sudo apt-get install python3-psycopg2 + sudo apt-get install swig3.0 + sudo apt-get install doxygen + sudo apt-get install graphviz + - name: configure + run: | + mkdir build + cd build + cmake .. + cd - + - name: make + run: | + cd build + make + cd - + - name: make test + run: | + cd build + make test + cd - diff --git a/bindings/python/CMakeLists.txt b/bindings/python/CMakeLists.txt index 7fb8ae891..0dc4e1312 100644 --- a/bindings/python/CMakeLists.txt +++ b/bindings/python/CMakeLists.txt @@ -4,6 +4,7 @@ project(dlite-bindings-python C) if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.14") cmake_policy(SET CMP0078 OLD) cmake_policy(SET CMP0086 OLD) + #cmake_policy(SET CMP0079 NEW) endif() # Try to require correct version of swig depending on Python version @@ -71,6 +72,7 @@ swig_add_library(dlite SOURCES dlite.i ) +#target_link_libraries(dlite swig_link_libraries(dlite dlite dlite-utils