diff options
author | Mike Frysinger <vapier@google.com> | 2020-01-25 04:10:03 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@google.com> | 2020-01-27 12:56:00 +0000 |
commit | 69285ba80ae73ef1f2ea718ed9cfc4dcf37d7d27 (patch) | |
tree | 661f1712ded6258c2b86fc2d8c7b671627417ea2 | |
parent | 3636ca90dd5169f4310ad8bdb2641a67f58265d6 (diff) | |
download | minijail-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.yml | 28 |
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 |