git repos / PlatformFolders

commit 0d31bd28

Poul Sander · 2021-12-01 19:56
0d31bd285ff41a7f78ea5e2b9f081b39a4af26f6 patch · browse files
parent 2eed66df99a1358e6b55c1c2c6b96a99818aa9d2

Remove travis. Add github actions

Changed files

A .github/workflows/build.yml
D .travis.yml before
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..468dd23 --- /dev/null +++ b/.github/workflows/build.yml
@@ -0,0 +1,15 @@
+on: [push]
+
+jobs:
+ ci_job:
+ runs-on: ubuntu-latest
+ name: Test that the code compiles
+ steps:
+ - name: Check Out Repo
+ uses: actions/checkout@v2
+ - name: Test Linux build
+ run: |
+ sudo apt-get install -y build-essential cmake
+ mkdir -p build && cd build
+ cmake -DBUILD_TESTING=OFF -DCMAKE_BUILD_TYPE=Release ..
+ sudo cmake --build . --target install
diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index cad7ff4..0000000 --- a/.travis.yml +++ /dev/null
@@ -1,38 +0,0 @@
-language: cpp
-matrix:
- include:
- - os: linux
- env: BUILD_TYPE=Debug
- compiler: gcc
- - os: linux
- env: BUILD_TYPE=Debug
- compiler: clang
- - os: linux
- env: BUILD_TYPE=Release
- compiler: gcc
- - os: linux
- env: BUILD_TYPE=Release
- compiler: clang
- - os: osx
- env: BUILD_TYPE=Debug
- compiler: gcc
- - os: osx
- env: BUILD_TYPE=Debug
- compiler: clang
- - os: osx
- env: BUILD_TYPE=Release
- compiler: gcc
- - os: osx
- env: BUILD_TYPE=Release
- compiler: clang
-before_script:
- - mkdir -p build && cd build
-script:
- # Run cmake, then compile and run tests with make
- - cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE .. && make -j$(nproc) && make test
-after_failure:
- # Dumps any logs so you can read the stderr
- - if [[ -e 'Testing/Temporary/LastTest.log' ]]; then cat 'Testing/Temporary/LastTest.log'; fi
- - if [[ -e 'CMakeFiles/CMakeError.log' ]]; then cat 'CMakeFiles/CMakeError.log'; fi
-notifications:
- email: false