Skip to content

Commit

Permalink
STYLE: Replace matrix.os != 'windows-2019' with !startsWith(matrix.os...
Browse files Browse the repository at this point in the history
Following the `${{`...`}}` syntax suggested by BrightRan at https://github.com/orgs/community/discussions/26386#discussioncomment-3251726 (discussion "If (not) startswith mutually exclusive steps")
  • Loading branch information
N-Dekker committed Jan 6, 2023
1 parent 62b8bc9 commit 78ba7e1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ElastixGitHubActions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
git checkout ${{ matrix.itk-git-tag }}
- name: Build ITK
if: steps.cache.outputs.cache-hit != 'true' && matrix.os != 'windows-2019'
if: ${{ steps.cache.outputs.cache-hit != 'true' && !startsWith(matrix.os, 'windows') }}
run: |
mkdir ITK-build
cd ITK-build
Expand Down Expand Up @@ -155,7 +155,7 @@ jobs:
ctest --output-on-failure -VV -j 2 -E "elastix_run_example_COMPARE_IM|elastix_run_3DCT_lung.MI.bspline.ASGD.001_COMPARE_TP" -S dashboard.cmake
- name: Build externalproject example
if: matrix.os != 'windows-2019'
if: ${{ !startsWith(matrix.os, 'windows') }}
run: |
mkdir externalproject-build
cd externalproject-build
Expand All @@ -173,7 +173,7 @@ jobs:
shell: cmd

- name: Run externalproject example
if: matrix.os != 'windows-2019'
if: ${{ !startsWith(matrix.os, 'windows') }}
run: |
externalproject-build/elastix_translation_example
Expand All @@ -185,7 +185,7 @@ jobs:
shell: cmd

- name: Prepare Artifacts Unix
if: matrix.os != 'windows-2019'
if: ${{ !startsWith(matrix.os, 'windows') }}
shell: bash
run: |
mkdir bin
Expand Down

0 comments on commit 78ba7e1

Please sign in to comment.