cmake-cicd/.github/workflows/c-cpp.yml
2024-12-19 16:46:37 +01:00

25 lines
377 B
YAML

name: C/C++ CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Configure CMake
run: |
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
- name: Build
run: cmake --build build
- name: Run
run: ./build/out