From 680f06dc10870cbef0734e5c141283d8788b60ba Mon Sep 17 00:00:00 2001 From: Marat Dukhan Date: Mon, 27 May 2024 15:04:20 -0700 Subject: [PATCH] Add CI via GitHub Actions --- .github/workflows/cmake.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/cmake.yml diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml new file mode 100644 index 0000000..7242d6e --- /dev/null +++ b/.github/workflows/cmake.yml @@ -0,0 +1,28 @@ +name: CMake build +on: + push: + paths: + - '.github/**/*.yml' + - 'CMakeLists.txt' + - 'cmake/**' + - '**.cc' + - '**.h' +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true +jobs: + cmake-linux-x86_64: + runs-on: ubuntu-20.04 + timeout-minutes: 15 + steps: + - uses: actions/checkout@v4 + - name: Update apt + run: sudo apt update + - name: Install ninja + run: sudo apt install ninja-build + - name: Configure + run: cmake -Bbuild -S. -GNinja -DCMAKE_BUILD_TYPE=Release -DFP16_BUILD_COMPARATIVE_BENCHMARKS=ON + - name: Build + run: cmake --build build + - name: Test + run: ctest --test-dir build