diff --git a/.github/workflows/commit-ci.yml b/.github/workflows/commit-ci.yml new file mode 100644 index 000000000..5a7c5b855 --- /dev/null +++ b/.github/workflows/commit-ci.yml @@ -0,0 +1,35 @@ +name: commit ci +on: [push] +jobs: + linux: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + compiler: [g++, clang] + steps: + - name: Checkout last commit + uses: actions/checkout@v2 + with: + fetch-depth: 0 + submodules: "recursive" + + - name: Install dependency + run: ./action-install-linux.sh + + - name: Unit test + run: make test + macos: + runs-on: macos-latest + steps: + - name: Checkout last commit + uses: actions/checkout@v2 + with: + fetch-depth: 0 + submodules: "recursive" + + - name: Install dependency + run: ./action-install-macos.sh + + - name: Unit test + run: make xcode/test diff --git a/travis-install-linux.sh b/action-install-linux.sh similarity index 100% rename from travis-install-linux.sh rename to action-install-linux.sh diff --git a/action-install-macos.sh b/action-install-macos.sh new file mode 100755 index 000000000..966a865bb --- /dev/null +++ b/action-install-macos.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +# install and build boost +make xcode/thirdparty/boost + +export BOOST_ROOT="$(pwd)/thirdparty/src/boost_1_75_0" + +make xcode/thirdparty + +make xcode diff --git a/travis-install-osx.sh b/travis-install-osx.sh deleted file mode 100755 index 15e613bfe..000000000 --- a/travis-install-osx.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash - -if [[ -n "$BOOST_ROOT" ]]; then - make xcode/thirdparty/boost -fi -make xcode/thirdparty