From fa38168a95ded0927062d47d0b409786d3e3425f Mon Sep 17 00:00:00 2001 From: Mark Glines Date: Mon, 17 May 2021 15:18:45 -0400 Subject: [PATCH] Add a CI workflow for automatic testing of pushes. --- .github/workflows/cuda-test-master.yml | 28 ++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/cuda-test-master.yml diff --git a/.github/workflows/cuda-test-master.yml b/.github/workflows/cuda-test-master.yml new file mode 100644 index 000000000..24c9724e0 --- /dev/null +++ b/.github/workflows/cuda-test-master.yml @@ -0,0 +1,28 @@ +name: "CUDA build and test (on push)" + +# Note: NOT triggered by pull requests. Pull requests should be reviewed +# by a human first, then triggered manually. See cuda-test-manual.yml. +on: + push: + branches: + - master +jobs: + ubuntu1604-cuda: + name: tests ubuntu 16.04 with CUDA 9 + runs-on: [self-hosted, ubuntu-16.04, cuda] + steps: + - uses: actions/checkout@v2 + - name: create_build + run: mkdir build + - name: cmake + run: cmake -DCMAKE_BUILD_TYPE=Debug -DCUDA=ON -DOPENMP=ON -DPYTHON=OFF .. + working-directory: build + - name: make + run: make -j8 + working-directory: build + - name: test + run: make test + env: + CTEST_OUTPUT_ON_FAILURE: 1 + CTEST_PARALLEL_LEVEL: 8 + working-directory: build