Skip to content

Commit 32c340a

Browse files
committed
CI: Adjust stage Test Assertions w/ Parallel Callbacks
Add build without assertions to ensure the code actually compiles without error, and disable the stage entirely for LFortran, which is currently unable to correctly compile this code (issue #68)
1 parent 9d54ab3 commit 32c340a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,12 @@ jobs:
188188
( set +e ; fpm run --example invoke-via-macro ${FPM_FLAGS} --flag "$FFLAGS" ; test $? = $ERROR_STOP_CODE )
189189
190190
- name: Test Assertions w/ Parallel Callbacks
191+
if: ${{ matrix.compiler != 'lfortran' }} # issue #68
191192
env:
192-
FPM_FLAGS: ${{ env.FPM_FLAGS }} --flag -DASSERTIONS --flag -DASSERT_MULTI_IMAGE --flag -DASSERT_PARALLEL_CALLBACKS
193+
FPM_FLAGS: ${{ env.FPM_FLAGS }} --flag -DASSERT_MULTI_IMAGE --flag -DASSERT_PARALLEL_CALLBACKS
193194
run: |
194195
set -x
195-
( set +e ; fpm run --example false-assertion ${FPM_FLAGS} --flag "$FFLAGS" ; test $? = $ERROR_STOP_CODE )
196-
( set +e ; fpm run --example simple-assertions ${FPM_FLAGS} --flag "$FFLAGS" ; test $? = $ERROR_STOP_CODE )
197-
( set +e ; fpm run --example invoke-via-macro ${FPM_FLAGS} --flag "$FFLAGS" ; test $? = $ERROR_STOP_CODE )
196+
fpm run --example false-assertion ${FPM_FLAGS} --flag "$FFLAGS"
197+
fpm run --example invoke-via-macro ${FPM_FLAGS} --flag "$FFLAGS"
198+
( set +e ; fpm run --example false-assertion ${FPM_FLAGS} --flag "$FFLAGS -DASSERTIONS" ; test $? = $ERROR_STOP_CODE )
199+
( set +e ; fpm run --example invoke-via-macro ${FPM_FLAGS} --flag "$FFLAGS -DASSERTIONS" ; test $? = $ERROR_STOP_CODE )

0 commit comments

Comments
 (0)