From ebbde693a563a9941ed3d9fdc3064cf17ee3b188 Mon Sep 17 00:00:00 2001 From: Tatsuhiko Kubo Date: Wed, 17 Feb 2021 23:11:40 +0900 Subject: [PATCH] ci: switch to GitHub Actions. --- .github/workflows/cpp.yml | 30 ++++++++++++++++++++++++++++++ .travis.yml | 18 ------------------ 2 files changed, 30 insertions(+), 18 deletions(-) create mode 100644 .github/workflows/cpp.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml new file mode 100644 index 0000000..5151095 --- /dev/null +++ b/.github/workflows/cpp.yml @@ -0,0 +1,30 @@ +name: C++ + +on: [push] +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Install scons and gtest + run: | + sudo apt-get install -y scons + sudo apt-get install -y cmake scons + wget https://github.com/google/googletest/archive/release-1.8.0.zip + unzip -q release-1.8.0.zip + cd googletest-release-1.8.0 + cmake . + make + sudo make install + + - name: Build examples + run: | + cd examples + scons + + - name: Test + run: | + cd test + scons check diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index abf2198..0000000 --- a/.travis.yml +++ /dev/null @@ -1,18 +0,0 @@ -language: cpp -compiler: - - gcc - - clang -before_script: - - sudo apt-get install -y cmake scons - - wget https://github.com/google/googletest/archive/release-1.8.0.zip - - unzip -q release-1.8.0.zip - - cd googletest-release-1.8.0 - - cmake . - - make - - sudo make install - - cd .. -script: - - cd examples - - scons - - cd ../test - - scons check