Skip to content

Commit

Permalink
Create c-cpp.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
schulzchristian authored Nov 28, 2023
1 parent f94e643 commit d7cced1
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: C/C++ CI

on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
compiler:
- { name: Clang, cc: clang, cxx: clang++ }
- { name: GNU, cc: gcc, cxx: g++ }
argument: [""]
timeout-minutes: 60
steps:
- name: Install dependencies
run: sudo apt-get install -y libopenmpi-dev pybind11-dev
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Export compiler
run: |
echo CXX=${{ matrix.compiler.cxx }} >> $GITHUB_ENV
echo CC=${{ matrix.compiler.cc }} >> $GITHUB_ENV
- name: Build
run: ./compile_withcmake.sh ${{ matrix.argument }}


0 comments on commit d7cced1

Please sign in to comment.