Skip to content

Commit

Permalink
Merge pull request #4 from ittiam-systems/actions
Browse files Browse the repository at this point in the history
Added github actions to check cmake builds
  • Loading branch information
DichenZhang1 authored Sep 21, 2023
2 parents 2d260e1 + 9bb3779 commit 3011395
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CMake

on:
push:
pull_request:

env:
BUILD_TYPE: Release

jobs:
build:
strategy:
matrix:
include:
- name: ubuntu-latest-gcc-cmake
os: ubuntu-latest
cc: gcc
cxx: g++
build-system: cmake

- name: ubuntu-latest-clang-cmake
os: ubuntu-latest
cc: clang
cxx: clang++
build-system: cmake

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3

- name: Configure CMake
run: cmake -B ${{github.workspace}}/out -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++

- name: Build
run: cmake --build ${{github.workspace}}/out --config ${{env.BUILD_TYPE}}

0 comments on commit 3011395

Please sign in to comment.