diff --git a/.github/workflows/ccpp.yml b/.github/workflows/ccpp.yml new file mode 100644 index 00000000..5a0440c4 --- /dev/null +++ b/.github/workflows/ccpp.yml @@ -0,0 +1,36 @@ +name: C/C++ CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build-test-ubuntu: + runs-on: ubuntu-18.04 + steps: + - uses: actions/checkout@v2 + - name: configure + run: ./configure + - name: make + run: make + - name: make test + run: make test + build-windows: + runs-on: windows-2019 + steps: + - uses: actions/checkout@v2 + - name: Add msbuild to PATH + uses: microsoft/setup-msbuild@v1.0.1 + - name: setup + run: md build + - name: configure + working-directory: ./build + run: cmake -DCVD_ENABLE_PROGS=OFF -DCVD_ENABLE_TESTS=OFF -DCVD_ENABLE_EXAMPLES=OFF .. + - name: compile + working-directory: ./build + run: msbuild CVD.sln + + + diff --git a/circle.yml b/circle.yml deleted file mode 100644 index 194e9804..00000000 --- a/circle.yml +++ /dev/null @@ -1,19 +0,0 @@ -dependencies: - pre: - - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y - - sudo add-apt-repository ppa:george-edison55/cmake-3.x -y - - sudo apt-get update - - sudo apt-get install g++-7 cmake - - sudo apt-get install cmake --only-upgrade -y - override: - - mkdir build - - cd build && CXX=g++-7 cmake -DCMAKE_BUILD_TYPE=Release .. && make && make test && cd .. - - rm -r build - - ./configure CXX="g++-7 -fuse-ld=gold" - - make -j 4 - - sudo make install - - sudo /sbin/ldconfig -test: - override: - - LD_LIBRARY_PATH=$PWD make test -