Created c-cpp.yml
This commit is contained in:
parent
90c3e807f6
commit
1477e2cfa4
1 changed files with 25 additions and 0 deletions
25
.github/workflows/c-cpp.yml
vendored
Normal file
25
.github/workflows/c-cpp.yml
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
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
|
Loading…
Add table
Reference in a new issue