adding CI
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "master" ]
|
||||
|
||||
jobs:
|
||||
build-and-test:
|
||||
runs-on: linepics
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: compile
|
||||
run: |
|
||||
cmake -B build -DBUILD_TEST=ON
|
||||
- name: Run tests
|
||||
run: |
|
||||
./build/test
|
||||
|
||||
+1
-2
@@ -5,8 +5,7 @@ project(generic VERSION 1.0)
|
||||
add_compile_options(
|
||||
-Wall
|
||||
-Wformat=2
|
||||
-g
|
||||
-O0
|
||||
-O2
|
||||
-Wuninitialized
|
||||
-Wno-unused-function
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user