From 2c893d3538b066b03249f5d9caffb0ebc8fbb948 Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 11 Nov 2020 12:33:32 -0800 Subject: Integrate github action for linux build+test. (#1601) --- .github/workflows/c-cpp.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/c-cpp.yml (limited to '.github') 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 -- cgit v1.2.3