-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-gcc: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: install packages | ||
run: sudo apt-get install -y flex bison | ||
- name: build the app | ||
run: mkdir build && cd build && cmake .. && cmake --build . | ||
- name: run the tests | ||
run: ctest --test-dir build/tests -V | ||
|
||
build-clang: | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: install packages | ||
run: sudo apt-get install -y clang-12 clang++-12 flex bison | ||
- name: build the app | ||
run: mkdir build && cd build && export CXX=clang++-12 && export CC=clang-12 && cmake .. && cmake --build . | ||
- name: run the tests | ||
run: ctest --test-dir build/tests -V |