Skip to content

Commit

Permalink
Add MATLAB support to GitHub Actions (#8)
Browse files Browse the repository at this point in the history
* Update ci.yml
* Update testflags.py
* Use MATLAB tests to use ubuntu-18.04 to avoid LD_PRELOAD MATLAB workaround
  • Loading branch information
traversaro authored Jul 28, 2022
1 parent 31bf99d commit f606f53
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,18 @@ jobs:
- SWIGLANG: lua
- SWIGLANG: lua
VER: '5.3'
- SWIGLANG: matlab
VER: R2020a
os: ubuntu-18.04
- SWIGLANG: matlab
VER: R2020b
os: ubuntu-18.04
- SWIGLANG: matlab
VER: R2021a
os: ubuntu-18.04
- SWIGLANG: matlab
VER: R2021b
os: ubuntu-18.04
- SWIGLANG: octave
CPPSTD: c++11
- SWIGLANG: octave
Expand Down Expand Up @@ -382,6 +394,12 @@ jobs:
$CC --version
$CXX --version
- name: Setup MATLAB (if SWIGLANG == matlab)
if: contains(matrix.SWIGLANG, 'matlab')
uses: matlab-actions/setup-matlab@v1
with:
release: ${{ matrix.VER }}

- name: Configure
run: |
source $GITHUB_WORKSPACE/Tools/CI-linux-environment.sh
Expand Down
2 changes: 2 additions & 0 deletions Tools/testflags.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def get_cflags(language, std, compiler):
"java":"-Werror " + c_common,
"javascript":"-Werror " + c_common,
"lua":"-Werror " + c_common,
"matlab": c_common,
"mzscheme":"-Werror " + c_common,
"ocaml":"-Werror " + c_common,
"octave":"-Werror " + c_common,
Expand Down Expand Up @@ -47,6 +48,7 @@ def get_cxxflags(language, std, compiler):
"java":"-Werror " + cxx_common,
"javascript":"-Werror " + cxx_common + " -Wno-error=unused-function", # Until overload_rename is fixed for node
"lua":"-Werror " + cxx_common,
"matlab": cxx_common,
"mzscheme":"-Werror " + cxx_common,
"ocaml":"-Werror " + cxx_common,
"octave":"-Werror " + cxx_common,
Expand Down

0 comments on commit f606f53

Please sign in to comment.