From de223c9e89b6589e0ef9c8cc343ffed9b78f4267 Mon Sep 17 00:00:00 2001 From: zaikunzhang Date: Sun, 9 Jun 2024 18:53:45 +0800 Subject: [PATCH] 240609.185345.HKT [skip ci] revise verify_archiva regarding gfortran setup --- .github/workflows/compile_mex.yml | 4 +--- .github/workflows/verify_archiva.yml | 10 ++++++++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/compile_mex.yml b/.github/workflows/compile_mex.yml index a9112e7ad0..055c896652 100644 --- a/.github/workflows/compile_mex.yml +++ b/.github/workflows/compile_mex.yml @@ -90,15 +90,13 @@ jobs: GFVER=9 fi echo "GFVER=$GFVER" >> $GITHUB_ENV - - name: Set up gfortran on Linux if: startsWith(matrix.os, 'ubuntu') uses: fortran-lang/setup-fortran@main with: compiler: gcc version: ${{ env.GFVER }} - - - name: Check gfortran version + - name: Check gfortran version on Linux if: startsWith(matrix.os, 'ubuntu') run: which gfortran && gfortran --version diff --git a/.github/workflows/verify_archiva.yml b/.github/workflows/verify_archiva.yml index 0da6b368a7..893ff8f797 100644 --- a/.github/workflows/verify_archiva.yml +++ b/.github/workflows/verify_archiva.yml @@ -81,9 +81,15 @@ jobs: repository: matcutest/matcutest_compiled path: matcutest - - name: Link gfortran for MATLAB on Linux + - name: Set up gfortran on Linux if: startsWith(matrix.os, 'ubuntu') - run: bash .github/scripts/link_gfortran ${{ env.GFORTRAN_VERSION }} + uses: fortran-lang/setup-fortran@main + with: + compiler: gcc + version: ${{ env.GFORTRAN_VERSION }} + - name: Check gfortran version on Linux + if: startsWith(matrix.os, 'ubuntu') + run: which gfortran && gfortran --version - name: Check MATLAB id: check_matlab