diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml new file mode 100644 index 0000000..0b1a5ae --- /dev/null +++ b/.github/workflows/test-build.yml @@ -0,0 +1,24 @@ +name: Test Build +on: + - pull_request + - push +jobs: + build: + runs-on: ubuntu-20.04 + env: + CXX: ${{ matrix.compiler }} + CXXFLAGS: -std=${{ matrix.standard }} + steps: + - uses: actions/checkout@v2 + - name: Build Modules + run: | + ./test_build.sh + strategy: + fail-fast: false + matrix: + compiler: + - clang++ + - g++ + standard: + - c++98 + - c++17 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index f9896f3..0000000 --- a/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -language: cpp -compiler: -- gcc -script: -- bash ./test_build.sh -branches: - only: - - master -env: -- ANOPE_VERSION=2.0.8 CXXFLAGS=-std=c++98 -- ANOPE_VERSION=2.0.8 CXXFLAGS=-std=c++11 diff --git a/test_build.sh b/test_build.sh index eb3588d..becca84 100755 --- a/test_build.sh +++ b/test_build.sh @@ -3,7 +3,7 @@ set -e if [[ -z $ANOPE_VERSION ]]; then - ANOPE_VERSION="2.0.8" + ANOPE_VERSION="2.0.9" fi wget -O anope.tar.gz "https://github.com/anope/anope/archive/${ANOPE_VERSION}.tar.gz"