Skip to content

Commit b13825a

Browse files
committed
Remove TravisCI and add GitHub actions
1 parent fc58015 commit b13825a

File tree

2 files changed

+48
-16
lines changed

2 files changed

+48
-16
lines changed

.github/workflows/cmake.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
env:
6+
BUILD_TYPE: Release
7+
8+
9+
jobs:
10+
build:
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
platform:
15+
- { name: Ubuntu GCC, os: ubuntu-latest, compiler: g++, }
16+
- { name: Ubuntu Clang, os: ubuntu-latest, compiler: clang++ }
17+
- { name: MacOS, os: macos-latest, compiler: clang++ }
18+
19+
name: ${{matrix.platform.name}}
20+
runs-on: ${{matrix.platform.os}}
21+
22+
steps:
23+
- name: Checkout code
24+
uses: actions/checkout@v2
25+
with:
26+
submodules: 'recursive'
27+
28+
- name: Setup Linux compiler
29+
if: runner.os == 'Linux'
30+
run: export CXX=${{matrix.platform.compiler}}
31+
32+
- name: Create Build Environment
33+
run: cmake -E make_directory ${{github.workspace}}/build
34+
35+
- name: Configure CMake
36+
shell: bash
37+
working-directory: ${{github.workspace}}/build
38+
run: cmake .. -DCMAKE_BUILD_TYPE=${BUILD_TYPE}
39+
40+
- name: Build
41+
shell: bash
42+
working-directory: ${{github.workspace}}/build
43+
run: cmake --build . --config ${BUILD_TYPE} --parallel 2
44+
45+
- name: Install
46+
shell: bash
47+
working-directory: ${{github.workspace}}/build
48+
run: cmake --install . --config ${BUILD_TYPE}

.travis.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)