Skip to content

Commit

Permalink
Replace Travis CI with GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
timniederhausen committed Feb 10, 2023
1 parent f555b31 commit 5a5bd7e
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 32 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Linux

on:
push:
branches: [ master ]
pull_request:

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}
cancel-in-progress: true

jobs:
build:
name: build
runs-on: ubuntu-20.04
continue-on-error: true

strategy:
matrix:
compiler:
- { compiler: GNU, CC: gcc, CXX: g++, }
- { compiler: LLVM, CC: clang, CXX: clang++ }

steps:
- name: checkout
uses: actions/checkout@v2

- name: cmake
env:
CC: ${{ matrix.compiler.CC }}
CXX: ${{ matrix.compiler.CXX }}
run: |
cmake -B ${{ github.workspace }}/build
- name: build library
run: |
cmake --build ${{ github.workspace }}/build
- name: run tests
working-directory: ${{ github.workspace }}/build
run: |
ctest
32 changes: 0 additions & 32 deletions .travis.yml

This file was deleted.

0 comments on commit 5a5bd7e

Please sign in to comment.