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
benbarsdell committed Jun 18, 2023
1 parent 36dcb4c commit 1a85c9c
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 14 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: ci
on: [push, pull_request]
env:
BUILD_TYPE: Release
jobs:
build-and-test:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
os: [linux]
compiler:
- {compiler: GNU, CC: gcc, CXX: g++}
- {compiler: LLVM, CC: clang, CXX: clang++ }
steps:
- uses: actions/checkout@v3
- name: Install packages
run: sudo apt-get install -y clang
- name: Run cmake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
env:
CXXFLAGS: -Werror
CC: ${{matrix.compiler.CC}}
CXX: ${{matrix.compiler.CXX}}
- name: Build and test
working-directory: ${{github.workspace}}/build
run: make check
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# RT-Units

[![Build Status](https://travis-ci.com/benbarsdell/rtunits.svg?branch=master)](https://travis-ci.com/benbarsdell/rtunits)
[![Build Status](https://github.com/benbarsdell/rtunits/actions/workflows/ci.yml/badge.svg?event=push)](https://github.com/benbarsdell/rtunits/actions?query=workflow%3Aci)


RT-Units - A single-header C++11 library for working with physical
quantities at runtime, including support for parsing and
Expand Down

0 comments on commit 1a85c9c

Please sign in to comment.