File tree 2 files changed +40
-36
lines changed
2 files changed +40
-36
lines changed Original file line number Diff line number Diff line change 69
69
COMPILER : ${{ inputs.compiler }}
70
70
VERSION : ${{ inputs.version }}
71
71
run : |
72
- action_path=$(echo '/${{ github.action_path }}' | sed -e 's/\\/\//g' -e 's/://')
73
- source "$action_path/setup-fortran.sh"
74
-
75
- compiler=${COMPILER:-gcc}
76
- platform=$(uname -s | tr '[:upper:]' '[:lower:]')
77
-
78
- if [[ "$RUNNER_OS" == "macOS" ]] && [[ "$compiler" == "intel" ]]; then
79
- echo "Compiler 'intel' not supported on macOS, falling back to 'intel-classic'"
80
- compiler="intel-classic"
81
- fi
82
-
83
- case $compiler in
84
- gcc)
85
- version=${VERSION:-13}
86
- install_gcc $platform
87
- ;;
88
- intel-classic)
89
- version=${VERSION:-2023.2.0}
90
- install_intel $platform true
91
- ;;
92
- intel)
93
- version=${VERSION:-2025.0}
94
- install_intel $platform false
95
- ;;
96
- nvidia-hpc)
97
- version=${VERSION:-25.1}
98
- install_nvidiahpc $platform
99
- ;;
100
- lfortran)
101
- version=${VERSION:-0.45.0}
102
- install_lfortran $platform
103
- ;;
104
- *)
105
- exit 1
106
- ;;
107
- esac
72
+ cd $(echo '/${{ github.action_path }}' | sed -e 's/\\/\//g' -e 's/://')
73
+ source ./main.sh
108
74
109
75
echo "FC=${FC}" >> $GITHUB_ENV
110
76
echo "CC=${CC}" >> $GITHUB_ENV
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ set -ex
3
+
4
+ compiler=${COMPILER:- gcc}
5
+ platform=$( uname -s | tr ' [:upper:]' ' [:lower:]' )
6
+
7
+ if [[ " $RUNNER_OS " == " macOS" ]] && [[ " $compiler " == " intel" ]]; then
8
+ echo " Compiler 'intel' not supported on macOS, falling back to 'intel-classic'"
9
+ compiler=" intel-classic"
10
+ fi
11
+
12
+ source ./setup-fortran.sh
13
+
14
+ case $compiler in
15
+ gcc)
16
+ version=${VERSION:- 13}
17
+ install_gcc $platform
18
+ ;;
19
+ intel-classic)
20
+ version=${VERSION:- 2023.2.0}
21
+ install_intel $platform true
22
+ ;;
23
+ intel)
24
+ version=${VERSION:- 2025.0}
25
+ install_intel $platform false
26
+ ;;
27
+ nvidia-hpc)
28
+ version=${VERSION:- 25.1}
29
+ install_nvidiahpc $platform
30
+ ;;
31
+ lfortran)
32
+ version=${VERSION:- 0.45.0}
33
+ install_lfortran $platform
34
+ ;;
35
+ * )
36
+ exit 1
37
+ ;;
38
+ esac
You can’t perform that action at this time.
0 commit comments