From 07f18bef368b2b8b0c8a93d0ced9b6e3567b490e Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Wed, 17 Nov 2021 21:23:59 +0000 Subject: [PATCH] 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. --- .github/workflows/ci.yml | 13 +++++++++++-- 1 file 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: