Skip to content

Commit

Permalink
Issue #85: Adding initial github action yaml file
Browse files Browse the repository at this point in the history
  • Loading branch information
mmodat committed Jul 28, 2022
1 parent bb045dd commit 3468e0c
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 1 deletion.
48 changes: 48 additions & 0 deletions .github/workflows/build_niftyreg.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: build-niftyreg
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 1
matrix:
os: [ubuntu-20.04]
include:
- os: ubuntu-20.04
c-compiler: "gcc"
cxx-compiler: "g++"
use_cuda: "OFF"
use_opencl: "OFF"
use_openmp: "OFF"
steps:
- uses: actions/checkout@v3

- name: Make directory structure
run: |
items=(*)
mkdir source, build
mv ${items[*]} source
shell: bash

- name: Get CMake
uses: lukka/get-cmake@latest

- name: build NiftyReg
run: |
cd build
cmake -DCMAKE_CXX_COMPILER=${{ matrix.c++-compiler }} \
-DCMAKE_C_COMPILER=${{ matrix.c-compiler }} \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_ALL_DEP=ON \
-DUSE_CUDA=${{ matrix.use_cuda }} \
-DUSE_OPENCL=${{ matrix.use_opencl }} \
-DUSE_SSE=ON \
-DUSE_OPENMP=${{ matrix.use_openmp }} \
-DBUILD_TESTING=ON \
../source
shell: bash

- name: Run tests
run: ctest -V
shell: bash

2 changes: 1 addition & 1 deletion niftyreg_build_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
75
76

0 comments on commit 3468e0c

Please sign in to comment.