diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml new file mode 100644 index 0000000..2da36ad --- /dev/null +++ b/.github/workflows/linux.yml @@ -0,0 +1,28 @@ +name: linux + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + strategy: + matrix: + os: [ubuntu-latest] + runs-on: ${{ matrix.os }} + if: "! contains(toJSON(github.event.commits.*.message), '[ci skip]')" + steps: + - uses: actions/checkout@v1 + with: + submodules: true + + - name: configure + run: cd test && mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Debug .. + + - name: build + run: cd test/build && make + + - name: run test + run: cd test/build && ./bin/ply-test diff --git a/.github/workflows/macOS.yml b/.github/workflows/macOS.yml new file mode 100644 index 0000000..c288eb8 --- /dev/null +++ b/.github/workflows/macOS.yml @@ -0,0 +1,25 @@ +name: macOS + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: macos-latest + if: "! contains(toJSON(github.event.commits.*.message), '[ci skip]')" + steps: + - uses: actions/checkout@v1 + with: + submodules: true + + - name: configure + run: cd test && mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Debug .. + + - name: build + run: cd test/build && make + + - name: run test + run: cd test/build && ./bin/ply-test diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml new file mode 100644 index 0000000..67dd3c7 --- /dev/null +++ b/.github/workflows/windows.yml @@ -0,0 +1,25 @@ +name: windows + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: windows-latest + if: "! contains(toJSON(github.event.commits.*.message), '[ci skip]')" + steps: + - uses: actions/checkout@v1 + with: + submodules: true + + - name: configure + run: cd test && mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Debug .. + + - name: build + run: cd test/build && cmake --build "." + + - name: run test + run: cd test/build && ./bin/Debug/ply-test.exe diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 4035b14..0000000 --- a/.travis.yml +++ /dev/null @@ -1,42 +0,0 @@ -branches: - only: - - master - -language: cpp - -os: - - linux - - osx - -compiler: - - gcc - - clang - -jobs: - # do this here rather than in matrix since we don't need multiple compilers - include: - - os: windows - -before_script: - - cd test - - mkdir build - - cd build - - cmake -DCMAKE_BUILD_TYPE=Debug .. - -script: - - | - if [ "$TRAVIS_OS_NAME" = "linux" ]; then - make - ./bin/ply-test - fi - - | - if [ "$TRAVIS_OS_NAME" = "osx" ]; then - make - ./bin/ply-test - fi - - | - if [ "$TRAVIS_OS_NAME" = "windows" ]; then - cmake --build "." - ls - ./bin/Debug/ply-test.exe - fi