From 864e7f057bb9d1f166f17be303c512f61018417c Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 8 Dec 2020 13:39:11 +0000 Subject: [PATCH] Migrate from Travis CI to GitHub Actions. --- .github/workflows/test-build.yml | 24 ++++++++++++++++++++++++ .travis.yml | 11 ----------- test_build.sh | 2 +- 3 files changed, 25 insertions(+), 12 deletions(-) create mode 100644 .github/workflows/test-build.yml delete mode 100644 .travis.yml 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"