From 767d80d7c74839391ac32f546156dbd6885a5e16 Mon Sep 17 00:00:00 2001 From: Rauli Laine Date: Fri, 4 Sep 2020 09:05:05 +0300 Subject: [PATCH] Add GitHub workflows configuration --- .github/workflows/build.yml | 18 ++++++++++++++++++ .travis.yml | 10 ---------- README.md | 4 +--- test/CMakeLists.txt | 6 ------ 4 files changed, 19 insertions(+), 19 deletions(-) create mode 100644 .github/workflows/build.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..a7e3d10 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,18 @@ +name: Build + +on: [push] + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + steps: + - uses: actions/checkout@v2 + - name: Build + uses: ashutoshvarma/action-cmake-build@master + with: + build-dir: ${{ runner.workspace }}/build + build-type: Release + run-test: true diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 20f24ba..0000000 --- a/.travis.yml +++ /dev/null @@ -1,10 +0,0 @@ -language: cpp -os: linux -dist: bionic -compiler: - - clang - - gcc -env: - - CXXFLAGS="-Wall -Werror" -script: - - mkdir build && cd build && cmake .. && cmake --build . && make test diff --git a/README.md b/README.md index ee7c90e..177ee4f 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,9 @@ # peelo-unicode -[![travis][travis-image]][travis-url] +![Build](https://github.com/peelonet/peelo-unicode/workflows/Build/badge.svg) Collection of various Unicode related utility functions for C++17. [Doxygen generated API documentation.][API] [API]: https://peelonet.github.io/peelo-unicode/index.html -[travis-image]: https://travis-ci.com/peelonet/peelo-unicode.svg?branch=master -[travis-url]: https://travis-ci.com/peelonet/peelo-unicode diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index e73c4b3..ad04bbc 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -17,12 +17,6 @@ FOREACH(TEST_FILENAME ${TEST_SOURCES}) cxx_std_17 ) - TARGET_COMPILE_OPTIONS( - ${TEST_NAME} - PRIVATE - -Wall -Werror - ) - TARGET_LINK_LIBRARIES( ${TEST_NAME} PeeloUnicode