Skip to content

Commit

Permalink
remove libzeep
Browse files Browse the repository at this point in the history
  • Loading branch information
mhekkel committed Feb 23, 2025
1 parent d8b619f commit 7695e68
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 3 deletions.
65 changes: 65 additions & 0 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: multi platform test

on:
push:
branches: [ "trunk", "develop" ]
pull_request:
branches: [ "trunk" ]

jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false

matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
include:
- os: windows-latest
cpp_compiler: cl
- os: ubuntu-latest
cpp_compiler: g++
- os: macos-latest
cpp_compiler: clang++

steps:
- uses: actions/checkout@v3

- name: Set reusable strings
id: strings
shell: bash
run: echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"

# - name: Install Catch2 Ubuntu
# if: matrix.os == 'ubuntu-latest'
# run: >
# sudo apt-get update && sudo apt-get install catch2

# - name: Install Catch2 macOS
# if: matrix.os == 'macos-latest'
# run: >
# brew install catch2

# - name: Install dependencies Window
# if: matrix.os == 'windows-latest'
# run: ./tools/depends.cmd
# shell: cmd

- name: Configure CMake
run: >
cmake -B ${{ steps.strings.outputs.build-output-dir }}
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
-DCMAKE_BUILD_TYPE=Release
-DBUILD_TESTING=ON
-S ${{ github.workspace }}
- name: Build
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config Release

- name: Test
working-directory: ${{ steps.strings.outputs.build-output-dir }}
run: ctest --build-config Release --output-on-failure -R dssp
env:
LIBCIFPP_DATA_DIR: ${{ steps.strings.outputs.build-output-dir }}/_deps/cifpp-src/rsrc

7 changes: 4 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ project(density-fitness VERSION 1.1.2 LANGUAGES CXX)

list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")

include(FindOrFetch)
include(GNUInstallDirs)
include(CheckFunctionExists)
include(CheckIncludeFile)
Expand Down Expand Up @@ -121,9 +122,9 @@ if(USE_RSRC)
endif()

# libraries
find_package(mcfp 1.3.5 REQUIRED)
find_package(nlohmann_json REQUIRED)
find_package(pdb-redo 3.2.0 REQUIRED)
find_or_fetch_package(mcfp VERSION 1.3.5 GIT_REPOSITORY https://github.com/mhekkel/libmcfp GIT_TAG b6c62a3)
find_or_fetch_package(nlohmann_json VERSION 3.11.3 GIT_REPOSITORY https://github.com/nlohmann/json.git GIT_TAG 9cca280)
find_or_fetch_package(pdb-redo VERSION 3.2.0 GIT_REPOSITORY https://github.com/PDB-REDO/libpdb-redo.git GIT_TAG f237ab0)

add_executable(density-fitness
${PROJECT_SOURCE_DIR}/src/density-fitness.cpp
Expand Down

0 comments on commit 7695e68

Please sign in to comment.