1515 check-version-matches :
1616 name : Check if version numbers match the GitHub tag
1717 runs-on : ubuntu-latest
18+ continue-on-error : ${{ github.event_name == 'workflow_dispatch' }}
1819 steps :
1920 - name : Checkout repository
2021 uses : actions/checkout@v4
@@ -33,11 +34,11 @@ jobs:
3334
3435 - name : Verify version consistency
3536 run : |
36- if [[ "$FPM_VERSION" != "$TAG_VERSION" ]]; then
37+ if [[ "v $FPM_VERSION" != "$TAG_VERSION" ]]; then
3738 echo "❌ Version mismatch: fpm.toml ($FPM_VERSION) does not match GitHub tag ($TAG_VERSION)"
3839 exit 1
3940 fi
40- if [[ "$FORTRAN_VERSION" != "$TAG_VERSION" ]]; then
41+ if [[ "v $FORTRAN_VERSION" != "$TAG_VERSION" ]]; then
4142 echo "❌ Version mismatch: mod_io_utils.F90 ($FORTRAN_VERSION) does not match GitHub tag ($TAG_VERSION)"
4243 exit 1
4344 fi
6566 - name : Set MACOSX_DEPLOYMENT_TARGET
6667 if : startsWith(matrix.platform[0], 'macos')
6768 run : echo "MACOSX_DEPLOYMENT_TARGET=$(sw_vers -productVersion | cut -d '.' -f 1-2)" >> $GITHUB_ENV
68-
69+
6970 - name : Check macOS deployment target
7071 if : startsWith(matrix.platform[0], 'macos')
7172 run : echo "Deployment target version is ${{ env.MACOSX_DEPLOYMENT_TARGET }} / ${MACOSX_DEPLOYMENT_TARGET}"
@@ -79,15 +80,15 @@ jobs:
7980 uses : jwlawson/actions-setup-cmake@v2.0.1
8081 with :
8182 cmake-version : ' 3.24.x'
82-
83+
8384 - name : actions-setup-fortran
8485 uses : fortran-lang/setup-fortran@v1
8586 id : setup-fortran
8687 with :
8788 compiler : ${{ matrix.toolchain.fortran-compiler }}
8889 version : ${{ matrix.toolchain.fc-version }}
89-
90-
90+
91+
9192 - name : Install python dependencies
9293 run : |
9394 python --version
@@ -112,10 +113,10 @@ jobs:
112113 steps :
113114 - name : checkout repo
114115 uses : actions/checkout@v4
115-
116+
116117 - name : Build sdist
117118 run : pipx run build --sdist
118-
119+
119120 - name : Store the source distribution
120121 uses : actions/upload-artifact@v4
121122 with :
0 commit comments