]> code.bitgloo.com Git - clyne/entityx.git/commitdiff
Fix broken automated builds.
authorJoseph Davies <deledrius@gmail.com>
Fri, 25 Jun 2021 02:06:52 +0000 (19:06 -0700)
committerAlec Thomas <alec@swapoff.org>
Fri, 25 Jun 2021 09:05:28 +0000 (19:05 +1000)
Replaces Travis-CI and AppVeyor scripts with Github Actions workflow.

.github/workflows/default-ci.yaml [new file with mode: 0644]
.travis.yml [deleted file]
appveyor.yml [deleted file]
scripts/travis.sh [deleted file]

diff --git a/.github/workflows/default-ci.yaml b/.github/workflows/default-ci.yaml
new file mode 100644 (file)
index 0000000..0a7c944
--- /dev/null
@@ -0,0 +1,38 @@
+name: CMake Build
+
+on:
+  push:
+    branches: [ master ]
+  pull_request:
+    branches: [ master ]
+
+jobs:
+  build:
+    runs-on: ${{ matrix.os }}
+    strategy:
+      matrix:
+        os: [ubuntu-latest, windows-latest, macos-latest]
+        build_type: [Release, Debug]
+        shared_library: [True, False]
+        exclude:
+        # Building a shared library is currently unsupported on Windows.
+        - os: windows-latest
+          shared_library: True
+
+    steps:
+    - uses: actions/checkout@v2
+
+    - name: Configure CMake
+      # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required when using a single-configuration generator such as make.
+      # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
+      run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DENTITYX_BUILD_SHARED=${{matrix.shared_library}}
+
+    - name: Build
+      # Build the library with the given configuration
+      run: cmake --build ${{github.workspace}}/build --config ${{matrix.build_type}}
+
+    - name: Test
+      working-directory: ${{github.workspace}}/build
+      # Execute tests defined by the CMake configuration.
+      # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
+      run: ctest -C ${{matrix.build_type}}
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644 (file)
index c06dba4..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-language: cpp
-compiler:
-  - clang
-  - gcc
-before_install:
-  - sudo apt-add-repository -y ppa:jkeiren/ppa
-  - if test $CC = gcc; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi
-  - sudo add-apt-repository -y ppa:george-edison55/precise-backports
-  - sudo apt-get update -qq
-  - if test $CC = gcc; then sudo apt-get install --yes --force-yes gcc-4.7 g++-4.7; fi
-  - if test $CC = gcc; then sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.7 20; fi
-  - if test $CC = gcc; then sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.7 20; fi
-  - if test $CC = gcc; then sudo update-alternatives --config gcc; fi
-  - if test $CC = gcc; then sudo update-alternatives --config g++; fi
-  - sudo apt-get install --yes --force-yes cmake cmake-data
-
-script: ./scripts/travis.sh
diff --git a/appveyor.yml b/appveyor.yml
deleted file mode 100644 (file)
index 313ca18..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-version: 1.0.{build}
-image: Visual Studio 2015 CTP 6
-build_script:
-- cmd: >-
-    cmake -DENTITYX_BUILD_TESTING=1 -DENTITYX_BUILD_SHARED=0
-
-    cmake --build . --target ALL_BUILD --config Release
-
-    cmake --build . --target RUN_TESTS --config Release
-
diff --git a/scripts/travis.sh b/scripts/travis.sh
deleted file mode 100755 (executable)
index c8b2a17..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/bash -e
-
-cmake -DCMAKE_BUILD_TYPE=Debug -DENTITYX_BUILD_TESTING=1
-make VERBOSE=1
-make test || cat Testing/Temporary/LastTest.log