summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/workflow.yml
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-09-19 12:33:56 +0200
committerTyge Løvset <[email protected]>2021-09-19 12:33:56 +0200
commitb667a161ef058fa7ecf6ac8833dcfaf0242b913c (patch)
treea568fb9a506cae492fdaf466965803ed62015b1c /.github/workflows/workflow.yml
parent4dbd7580db4d64c2fd8e8a5c1d2127109f5001a0 (diff)
parent0f5362fb4e2ef345782ac096b3f18e96dc854230 (diff)
downloadSTC-modified-b667a161ef058fa7ecf6ac8833dcfaf0242b913c.tar.gz
STC-modified-b667a161ef058fa7ecf6ac8833dcfaf0242b913c.zip
Merge branch 'master' of github.com:tylov/STC into master
Diffstat (limited to '.github/workflows/workflow.yml')
-rw-r--r--.github/workflows/workflow.yml23
1 files changed, 23 insertions, 0 deletions
diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml
new file mode 100644
index 00000000..5ceacd43
--- /dev/null
+++ b/.github/workflows/workflow.yml
@@ -0,0 +1,23 @@
+name: "Main Workflow"
+on:
+ pull_request:
+ push:
+
+jobs:
+ build_and_test:
+ runs-on: ubuntu-latest
+ env:
+ CFLAGS: -Wall -Wno-unused-function -ggdb3 -fsanitize=address -fsanitize=undefined -fsanitize=pointer-compare -fsanitize=pointer-subtract
+ CXXFLAGS: -Wall -Wno-unused-function -ggdb3 -fsanitize=address -fsanitize=undefined -fsanitize=pointer-compare -fsanitize=pointer-subtract
+ steps:
+ - name: 'Checkout'
+ uses: actions/checkout@v2
+ - name: 'Build & Test'
+ uses: ashutoshvarma/action-cmake-build@master
+ with:
+ cc: gcc
+ cxx: g++
+ build-type: Release
+ configure-options: -DBUILD_TESTING=1
+ ctest-options: --output-on-failure
+ run-test: true