From c8fed4e6f288afa510fd21301043e562ebc36b72 Mon Sep 17 00:00:00 2001 From: Aaron Date: Mon, 25 Oct 2021 07:50:18 -0400 Subject: [PATCH] Beginning of Github Actions CI Workflow (#207) * Initial CI workflow, for linux, 64-bit only so far * Forgot to sudo apt commands * Update trigger for github CI workflow --- .github/workflows/ci.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..331f389 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,33 @@ +name: Duo Unix CI + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + nix_ci: + runs-on: ubuntu-latest + + strategy: + matrix: + cc: [gcc, clang] + + steps: + - name: Install packages + run: sudo apt-get update && sudo apt-get install -y autoconf libtool libpam-dev libssl-dev automake python cppcheck + + - name: Checkout repo + uses: actions/checkout@v2 + + - name: Build + run: ./bootstrap && ./configure --with-pam --prefix=/usr && make CC=${{ matrix.cc }} + + - name: Run tests + run: make check + + - name: Static analysis + run: cppcheck --quiet --force -i tests --suppressions-list=.false_positive.txt --error-exitcode=1 .