Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisbelierasml committed Aug 16, 2024
1 parent b730499 commit 7e93f34
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run-tests-dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
type: choice
options:
- 'windows-latest'
- 'ubuntu-24.04'
- 'ubuntu-latest'
- 'macos-latest'
matlab-version:
required: true
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/run-tests-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ on:


env:
GCC_VERSION: ${{ startsWith(inputs.matlab-version, 'R2021') && '8' || (startsWith(inputs.matlab-version, 'R2022') && '9' || '10') }}
GCC_VERSION: ${{ startsWith(inputs.matlab-version, 'R2021') && '9' || (startsWith(inputs.matlab-version, 'R2022') && '10' || '11') }}

jobs:
test:
runs-on: ${{ (startsWith(inputs.os, 'ubuntu') && startsWith(inputs.matlab-version, 'R2021')) && 'ubuntu-20.04' || inputs.os }}
runs-on: ${{ inputs.os }}
name: ${{ inputs.os }}-${{ inputs.matlab-version }}-${{ inputs.julia-version }}
steps:

- name: Configure compatible GCC compiler for MATLAB.
if: startsWith(${{ inputs.os }}, 'ubuntu') && startsWith(${{ inputs.matlab-version }}, 'R2021b')
- name: Configure compatible linux GCC compiler for MATLAB.
if: startsWith(${{ inputs.os }}, 'ubuntu')
run: |
sudo apt-get install g++-${{ env.GCC_VERSION }}
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-${{ env.GCC_VERSION }} 100
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run-tests-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ jobs:
matlab-version: ['R2021b', 'R2022b', 'R2023b']
julia-version: ['1.7', '1.8', '1.9', '1.10']
with:
os: ubuntu-24.04
os: ubuntu-latest
matlab-version: ${{ matrix.matlab-version }}
julia-version: ${{ matrix.julia-version }}

0 comments on commit 7e93f34

Please sign in to comment.