summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/workflow.yml
blob: b1443a0dd6c4c00dbf22a26da61024157cd4321f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
name: "Main Workflow"
on:
  pull_request:
  push:

jobs:
  build_and_test:
    runs-on: ubuntu-latest
    env:
      CFLAGS:   -DSTC_STATIC -Wall -Wno-unused-function -ggdb3 -fsanitize=address -fsanitize=undefined -fsanitize=pointer-compare -fsanitize=pointer-subtract
      CXXFLAGS: -DSTC_STATIC -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