matlab-actions / setup-matlab

Set up your GitHub Actions workflow with a specific version of MATLAB.
BSD 3-Clause "New" or "Revised" License
77 stars 12 forks source link

Support `ubuntu-24.04` #115

Closed zaikunzhang closed 5 months ago

zaikunzhang commented 5 months ago

It seems that setup-matlab 2.2.0 does not support ubuntu-24.04. See, e.g.,

https://github.com/matcutest/matcutest_compiled/actions/runs/9444871531/job/26011307511

The error message:

Run matlab-actions/setup-matlab@v2.2.0
  with:
    release: R[2](https://github.com/matcutest/matcutest_compiled/actions/runs/9444871531/job/26011310008#step:13:2)020b
    cache: true
    products: Parallel_Computing_Toolbox
  env:
    ROOT_DIR: /home/runner/work/matcutest_compiled/matcutest_compiled
    TEST_DIR: /tmp/gittest_1718007507_184782208
    SEDI: sed -i
    GFORTRAN_VERSION: 1[3](https://github.com/matcutest/matcutest_compiled/actions/runs/9444871531/job/26011310008#step:13:3)
    GFVER: 9
    FC: gfortran
    CC: gcc
    CXX: g++
    FPM_FC: gfortran
    FPM_CC: gcc
    FPM_CXX: g++
Preparing system for MATLAB
  /usr/bin/sudo -E bash /home/runner/work/_temp/2d68e93c-ecff-[4](https://github.com/matcutest/matcutest_compiled/actions/runs/9444871531/job/26011310008#step:13:4)ab5-8243-361b61d970f4 r2020b
  MATLAB R2020b is not supported on 'ubuntu:noble'.
  For more details, see https://www.mathworks.com/support/requirements/matlab-system-requirements.html
  Hit:1 http://azure.archive.ubuntu.com/ubuntu noble InRelease
  Hit:2 http://azure.archive.ubuntu.com/ubuntu noble-updates InRelease
  Hit:3 http://azure.archive.ubuntu.com/ubuntu noble-backports InRelease
  Hit:4 http://azure.archive.ubuntu.com/ubuntu noble-security InRelease
  Get:[5](https://github.com/matcutest/matcutest_compiled/actions/runs/9444871531/job/26011310008#step:13:5) https://packages.microsoft.com/repos/azure-cli noble InRelease [35[6](https://github.com/matcutest/matcutest_compiled/actions/runs/9444871531/job/26011310008#step:13:6)4 B]
  Get:6 https://packages.microsoft.com/ubuntu/24.04/prod noble InRelease [3600 B]
  Hit:[7](https://github.com/matcutest/matcutest_compiled/actions/runs/9444871531/job/26011310008#step:13:7) https://ppa.launchpadcontent.net/ubuntu-toolchain-r/test/ubuntu noble InRelease
  Fetched 7164 B in 0s (15.6 kB/s)
  Reading package lists...
  W: https://ppa.launchpadcontent.net/ubuntu-toolchain-r/test/ubuntu/dists/noble/InRelease: Signature by key 60C317[8](https://github.com/matcutest/matcutest_compiled/actions/runs/9444871531/job/26011310008#step:13:8)03A41BA51845E371A1E9377A2BA9EF27F uses weak algorithm (rsa[10](https://github.com/matcutest/matcutest_compiled/actions/runs/9444871531/job/26011310008#step:13:10)24)
  Reading package lists...
  Building dependency tree...
  Reading state information...
  Package libasound2 is a virtual package provided by:
    liboss4-salsa-asound2 4.2-build2020-1ubuntu3
    libasound2t64 1.2.[11](https://github.com/matcutest/matcutest_compiled/actions/runs/9444871531/job/26011310008#step:13:11)-1build2 (= 1.2.11-1build2)

  E: Package 'libasound2' has no installation candidate
Error: Error: The process '/usr/bin/sudo' failed with exit code 100
davidbuzinski commented 5 months ago

Hi @zaikunzhang ,

It looks like there's a dependency conflict that has come up since we originally produced dependencies for Ubuntu 24.04. We will work to get a corrected dependency list posted shortly. I'll post all updates here.

David

davidbuzinski commented 5 months ago

We updated the dependencies, and the setup-matlab action should now work on Ubuntu 24.04.

scivision commented 5 months ago

Note in general that if using compilers with Matlab, the compiler has to be compatible. This is what keeps me on ubuntu-22.04, as R2024a and several prior versions need GCC 10.