aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@google.com>2020-01-25 04:10:03 -0500
committerMike Frysinger <vapier@google.com>2020-01-27 12:56:00 +0000
commit69285ba80ae73ef1f2ea718ed9cfc4dcf37d7d27 (patch)
tree661f1712ded6258c2b86fc2d8c7b671627417ea2
parent3636ca90dd5169f4310ad8bdb2641a67f58265d6 (diff)
downloadminijail-69285ba80ae73ef1f2ea718ed9cfc4dcf37d7d27.tar.gz
enable github build+test actions
This gets us some simple build+ci coverage on Ubuntu via GH actions. Doesn't cost us anything :). Change-Id: I2b4462370c6fc819775af05e681ecca9fc0894fb
-rw-r--r--.github/workflows/build-test-ci.yml28
1 files changed, 28 insertions, 0 deletions
diff --git a/.github/workflows/build-test-ci.yml b/.github/workflows/build-test-ci.yml
new file mode 100644
index 0000000..bed8a43
--- /dev/null
+++ b/.github/workflows/build-test-ci.yml
@@ -0,0 +1,28 @@
+# GitHub actions workflow.
+# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions
+
+name: Build+Test CI
+
+on:
+ push:
+ branches: [master]
+ tags: [linux-v*]
+
+jobs:
+ build-test:
+ strategy:
+ fail-fast: false
+ matrix:
+ os: [ubuntu-latest]
+ cc: [gcc, clang]
+ runs-on: ${{ matrix.os }}
+ env:
+ CC: ${{ matrix.cc }}
+ steps:
+ - uses: actions/checkout@v1
+ - name: Install system packages
+ run: sudo apt-get install libcap-dev
+ - name: Install Googletest (gtest/gmock)
+ run: ./get_googletest.sh
+ - run: make VERBOSE=1
+ - run: make VERBOSE=1 check