From a76b2fcc10538ae72891396a08e9aad927cbfdd8 Mon Sep 17 00:00:00 2001 From: nick black Date: Fri, 8 Mar 2024 02:37:20 -0500 Subject: [PATCH] first stab at a github workflow --- .github/workflows/ubuntu_test.yml | 50 +++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/ubuntu_test.yml diff --git a/.github/workflows/ubuntu_test.yml b/.github/workflows/ubuntu_test.yml new file mode 100644 index 00000000..cca269fd --- /dev/null +++ b/.github/workflows/ubuntu_test.yml @@ -0,0 +1,50 @@ +--- +name: Ubuntu + +on: + pull_request: + push: + branches: + - master + +jobs: + tests: + env: + COLORTERM: truecolor + NPROC: 2 + TERM: xterm + name: 🐧 build, test, & install + runs-on: ubuntu-latest + + steps: + + - name: Install tools and libraries via APT + run: | + sudo apt update + sudo apt install -y \ + build-essential \ + cmake \ + nettle-dev + + - uses: actions/checkout@v2 + + - name: cmake + run: | + mkdir build && cd build + cmake .. \ + -DCMAKE_BUILD_TYPE=Release + + - name: make + run: | + cd build + make -j${NPROC} + + - name: ctest + run: | + cd build + ctest --output-on-failure + + - name: make install + run: | + cd build + sudo make install