diff options
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/c-cpp.yml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml new file mode 100644 index 000000000..2bffa36ed --- /dev/null +++ b/.github/workflows/c-cpp.yml @@ -0,0 +1,31 @@ +name: C/C++ CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + configuration: ['debug', 'release'] + compiler: ['gcc', 'clang'] + steps: + - uses: actions/checkout@v2.3.4 + with: + submodules: 'true' + fetch-depth: '0' + - name: build + run: + CC=${{matrix.compiler}} + CONFIGURATION=${{matrix.configuration}} + source ./github_build.sh + - name: test + run: + CONFIGURATION=${{matrix.configuration}} + CC=${{matrix.compiler}} + source ./github_test.sh
\ No newline at end of file |
