diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 8b26882..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,33 +0,0 @@ -version: 2 -jobs: - test_debug: - docker: - - image: tschijnmo/drudge:base - steps: - - run: | - git clone --recurse-submodules https://github.com/tschijnmo/cpypp.git - mkdir cmake-test-debug - cd cmake-test-debug - cmake -DCMAKE_BUILD_TYPE=debug ../cpypp - make - ./test/testmain - - test_release: - docker: - - image: tschijnmo/drudge:base - steps: - - run: | - git clone --recurse-submodules https://github.com/tschijnmo/cpypp.git - mkdir cmake-test-release - cd cmake-test-release - cmake -DCMAKE_BUILD_TYPE=release ../cpypp - make - ./test/testmain - -workflows: - version: 2 - tests: - jobs: - - test_debug - - test_release - diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..13d76ea --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,54 @@ +name: CI + +on: + push: + branches: + - master + - 'release/*' + pull_request: + branches: + - master + workflow_dispatch: + +jobs: + test_debug: + runs-on: ubuntu-latest + permissions: + contents: read + container: + image: tschijnmo/drudge:base + + steps: + - name: Checkout repository with submodules + uses: actions/checkout@v3 + with: + submodules: recursive + + - name: Build and test (debug) + run: | + mkdir cmake-test-debug + cd cmake-test-debug + cmake -DCMAKE_BUILD_TYPE=debug .. + make + ./test/testmain + + test_release: + runs-on: ubuntu-latest + permissions: + contents: read + container: + image: tschijnmo/drudge:base + + steps: + - name: Checkout repository with submodules + uses: actions/checkout@v3 + with: + submodules: recursive + + - name: Build and test (release) + run: | + mkdir cmake-test-release + cd cmake-test-release + cmake -DCMAKE_BUILD_TYPE=release .. + make + ./test/testmain diff --git a/.ycm_extra_conf.py b/.ycm_extra_conf.py deleted file mode 100644 index 4867739..0000000 --- a/.ycm_extra_conf.py +++ /dev/null @@ -1,18 +0,0 @@ -import os.path -import subprocess - -def FlagsForFile(filename, **kwargs): - flags = ['-std=c++14', '-I/usr/local/include', '-I.'] - - # Call the config script to get the directories for the Python3 interpreter - # in PATH. - py_includes = subprocess.check_output( - ['python3-config', '--includes'] - ).decode('utf-8').split() - flags.extend(py_includes) - - proj_dir = os.path.dirname(os.path.realpath(__file__)) - proj_include = os.path.join(proj_dir, 'include') - flags.append('-I' + proj_include) - - return {'flags': flags} diff --git a/README.md b/README.md index bbb898b..403301a 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Build Status](https://circleci.com/gh/tschijnmo/cpypp.svg?style=shield)](https://circleci.com/gh/tschijnmo/cpypp) +[![CI](https://github.com/DrudgeCAS/cpypp/actions/workflows/ci.yml/badge.svg)](https://github.com/DrudgeCAS/cpypp/actions/workflows/ci.yml) # cpypp