Hello!
Thank you very much for providing MATLAB on GitHub Actions. It is great that MATLAB R2022a is now made available!
According to the official documentation, MATLAB R2022a supports gfortan8.x as the Fortran compiler for MEX on Linux. However, according to my test on GitHub Actions, gfortran 8 fails to compile the official timestwo.F, the error message being
gfortran: error: unrecognized command line option ‘-fallow-argument-mismatch’;
did you mean ‘-Wno-argument-mismatch’?
Nevertheless, gfortran 10 and 11 succeed, even though they are not supported officially.
I am not sure whether this comes from MATLAB R2022a itself, or from the setup of MATLAB on GitHub Actions. Thank you for having a look at it.
Update (20220319): The problem has been reproduced using "MATLAB Online". The official configuration of MATLAB Online (R2022a with gfortran 8.3.0) fails to run the following command, the error message being the same as above.
mex('-setup', '-v', 'FORTRAN'); mex('-v', fullfile(matlabroot, 'extern', 'examples', 'refbook', 'timestwo.F'));
Therefore, this seems not a problem of GitHub Actions, but a bug of MATLAB R2022a.
Many thanks for everything!
Best regards,
Zaikun