Skip to content

Commit

Permalink
Create c-cpp.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
subugt authored Jul 24, 2024
1 parent 5e80894 commit 75cdba0
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: C/C++ CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
name: Checkout code

- name: Set up CMake
uses: actions/setup-cmake@v3
with:
cmake-version: '3.23.1'

- name: Configure CMake
run: cmake -S . -B build

- name: Build
run: cmake --build build

- name: Run tests
run: ctest --test-dir build

- name: Package
run: cpack --config build/CPackConfig.cmake

0 comments on commit 75cdba0

Please sign in to comment.