From 80b750f972308441b4f58938e4e48d7d30820e84 Mon Sep 17 00:00:00 2001 From: Marc Modat Date: Thu, 28 Jul 2022 14:27:22 +0100 Subject: [PATCH] Issue #85: Adding macos and win --- .github/workflows/build_niftyreg.yml | 20 ++++++++++---------- niftyreg_build_version.txt | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build_niftyreg.yml b/.github/workflows/build_niftyreg.yml index 318c2ab0..28ec7e19 100644 --- a/.github/workflows/build_niftyreg.yml +++ b/.github/workflows/build_niftyreg.yml @@ -6,7 +6,7 @@ jobs: strategy: max-parallel: 3 matrix: - os: [ubuntu-20.03, macos-11, windows-2022] + os: [ubuntu-20.04, macos-11, windows-2022] include: - os: ubuntu-20.04 c-compiler: "gcc" @@ -42,14 +42,14 @@ jobs: sudo cmake --build build/ --target install shell: bash - - name: Install Catch2 + - name: Install Catch2 (windows) if: matrix.os == 'windows-2022' run: | call "${{ matrix.vcvars64 }}" git clone https://github.com/catchorg/Catch2.git cd Catch2 cmake -Bbuild -H. -DBUILD_TESTING=OFF - sudo cmake --build build/ --target install + cmake --build build/ --target install shell: cmd - name: Configure NiftyReg @@ -69,7 +69,7 @@ jobs: .. shell: bash - - name: Configure NiftyReg + - name: Configure NiftyReg (windows) if: matrix.os == 'windows-2022' run: | mkdir build @@ -92,19 +92,19 @@ jobs: run: make shell: bash - - name: Build NiftyReg + - name: Build NiftyReg (windows) if: matrix.os == 'windows-2022' - run: make + run: | + call "${{ matrix.vcvars64 }}" + make shell: cmd - name: Run tests if: matrix.os != 'windows-2022' - run: | - call "${{ matrix.vcvars64 }}" - ctest -V + run: ctest -V shell: bash - - name: Run tests + - name: Run tests (windows) if: matrix.os == 'windows-2022' run: | call "${{ matrix.vcvars64 }}" diff --git a/niftyreg_build_version.txt b/niftyreg_build_version.txt index 871727de..a862eb84 100644 --- a/niftyreg_build_version.txt +++ b/niftyreg_build_version.txt @@ -1 +1 @@ -84 +85