Skip to content

Commit

Permalink
240609.193309.HKT [skip ci] revise verify_big/small/large regarding g…
Browse files Browse the repository at this point in the history
…fortran setup
  • Loading branch information
zaikunzhang committed Jun 9, 2024
1 parent 6958f38 commit f044818
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 11 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/ss
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

sed -i '/- name: Link gfortran for MATLAB on Linux/,/run: bash .github\/scripts\/link_gfortran \${{\ env.GFORTRAN_VERSION\ }}$/c\
- name: Set up gfortran on Linux\
if: startsWith(matrix.os, '\''ubuntu'\'')\
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' \
$1
7 changes: 0 additions & 7 deletions .github/workflows/verify_big.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,21 +61,14 @@ jobs:
path: matcutest

- name: Set up gfortran on Linux

if: startsWith(matrix.os, 'ubuntu')

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
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/verify_large.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,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
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/verify_small.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,16 @@ 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
Expand Down

0 comments on commit f044818

Please sign in to comment.