summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2021-11-17 21:23:59 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2021-11-17 21:23:59 +0000
commit07f18bef368b2b8b0c8a93d0ced9b6e3567b490e (patch)
tree7476d35fc2f1ef818f584cf3ae6c2ecc379c7372
parentac9f819f6ed767f763320fc64c79025868b69a1c (diff)
downloadswig-07f18bef368b2b8b0c8a93d0ced9b6e3567b490e.tar.gz
GHA: Test experimental languages - mzscheme and ocaml
These are allowed to fail and they won't fail the overall build (like they did on Travis). Implemented via the continue-on-error flag that Github Actions provides.
-rw-r--r--.github/workflows/ci.yml13
1 files changed, 11 insertions, 2 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 2d4c2d9a2..cd99957e8 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -16,11 +16,15 @@ on:
jobs:
build:
+ # When continue-on-error is true for an individual build, that build can fail (it'll show red),
+ # but it won't fail the overall build
+ continue-on-error: ${{ matrix.continue-on-error || false }}
+
runs-on: ${{ matrix.os || 'ubuntu-20.04' }}
# By default, the name of the build is the language used and SWIG options, but matrix entries
# can define the additional "desc" field with any additional information to include in the name.
- name: ${{ matrix.SWIGLANG || 'none' }}${{ matrix.PY3 }} ${{ matrix.ENGINE}} ${{ matrix.VER }} ${{ matrix.SWIG_FEATURES }} ${{ (matrix.compiler || 'gcc') }}${{ matrix.GCC }} ${{ matrix.CPPSTD }} ${{ matrix.CSTD }} ${{ matrix.desc }}
+ name: ${{ matrix.SWIGLANG || 'none' }}${{ matrix.PY3 }} ${{ matrix.ENGINE}} ${{ matrix.VER }} ${{ matrix.SWIG_FEATURES }} ${{ (matrix.compiler || 'gcc') }}${{ matrix.GCC }} ${{ matrix.CPPSTD }} ${{ matrix.CSTD }} ${{ matrix.desc }} ${{ matrix.continue-on-error && '(can fail)' }}
strategy:
matrix:
@@ -280,7 +284,12 @@ jobs:
- SWIGLANG: tcl
CPPSTD: c++17
GCC: 11
- # let's run all of them, as opposed to aborting when one fails
+ # Experimental languages (these are allowed to fail)
+ - SWIGLANG: mzscheme
+ continue-on-error: true
+ - SWIGLANG: ocaml
+ continue-on-error: true
+ # Run all of them, as opposed to aborting when one fails
fail-fast: false
env: