summaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2020-11-11 12:33:32 -0800
committerGitHub <noreply@github.com>2020-11-11 12:33:32 -0800
commit2c893d3538b066b03249f5d9caffb0ebc8fbb948 (patch)
tree81d71e89ea59c9c480e7b21f683dd98cbc0435e4 /.github/workflows
parent8f0895e0f8257da2fd10b6325931627a9a1792ba (diff)
Integrate github action for linux build+test. (#1601)
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/c-cpp.yml31
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