Skip to content

Commit 39f31f7

Browse files
committed
gcc-14 via choco
1 parent 405e83b commit 39f31f7

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

setup-fortran.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,16 @@ install_gcc_choco()
126126
mv /c/Strawberry/c/bin/g++ "$RUNNER_TEMP/strawberry/g++"
127127
echo "C:\ProgramData\mingw64\mingw64\bin" >> $GITHUB_PATH
128128
;;
129+
14)
130+
choco install mingw --version 14.2.0 --force
131+
# mingw 13+ on Windows doesn't create shims (http://disq.us/p/2w5c5tj)
132+
# so hide Strawberry compilers and manually add mingw bin dir to PATH
133+
mkdir "$RUNNER_TEMP/strawberry"
134+
mv /c/Strawberry/c/bin/gfortran "$RUNNER_TEMP/strawberry/gfortran"
135+
mv /c/Strawberry/c/bin/gcc "$RUNNER_TEMP/strawberry/gcc"
136+
mv /c/Strawberry/c/bin/g++ "$RUNNER_TEMP/strawberry/g++"
137+
echo "C:\ProgramData\mingw64\mingw64\bin" >> $GITHUB_PATH
138+
;;
129139
13)
130140
choco install mingw --version 13.2.0 --force
131141
# mingw 13+ on Windows doesn't create shims (http://disq.us/p/2w5c5tj)
@@ -152,7 +162,7 @@ install_gcc_choco()
152162
choco install mingw --version 8.5.0 --force
153163
;;
154164
*)
155-
echo "Unsupported version: $version (choose 8-13, 15, or latest)"
165+
echo "Unsupported version: $version (choose 8-15, or latest)"
156166
exit 1
157167
;;
158168
esac

0 commit comments

Comments
 (0)