Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Ben Boeckel
ParaView-Superbuild
Commits
70789f4e
Commit
70789f4e
authored
Sep 09, 2020
by
Ben Boeckel
Browse files
gitlab-ci: download gfortran as part of the CI job
parent
bda83cfd
Pipeline
#188283
waiting for manual action with stages
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
.gitlab/ci/install_gfortran.sh
0 → 100755
View file @
70789f4e
#!/bin/sh
set
-e
readonly
version
=
"9.2"
readonly
patch
=
"0"
# From https://downloads.sourceforge.net/project/hpc/hpc/g95/gfortran-$version-bin.tar.gz
readonly
tarball
=
"gfortran-
$version
-bin.tar.gz"
readonly sha256sum
=
"89f549739d4713a21781c7e478c3627ab9ad4133629ffab1e1de65c0cbc3329b"
cd
.gitlab
echo
"
$sha256sum
$tarball
"
>
gfortran.sha256sum
curl
-OL
"https://www.paraview.org/files/dependencies/
$tarball
"
shasum
-a
256
--check
gfortran.sha256sum
mkdir
-p
gfortran
# The tarball is hard-coded to live in `usr/local`. We need to make it
# minimally relocatable.
tar
--strip-components
2
-C
gfortran
-xzf
"
$tarball
"
# Fixup the references so that the toolchain is usable from the CI directory.
install_name_tool
-change
/usr/local/lib/libmpc.3.dylib @loader_path/../../../../lib/libmpc.3.dylib
"gfortran/libexec/gcc/x86_64-apple-darwin19/
$version
.
$patch
/f951"
install_name_tool
-change
/usr/local/lib/libmpfr.4.dylib @loader_path/../../../../lib/libmpfr.4.dylib
"gfortran/libexec/gcc/x86_64-apple-darwin19/
$version
.
$patch
/f951"
install_name_tool
-change
/usr/local/lib/libgmp.10.dylib @loader_path/../../../../lib/libgmp.10.dylib
"gfortran/libexec/gcc/x86_64-apple-darwin19/
$version
.
$patch
/f951"
install_name_tool
-change
/usr/local/lib/libmpfr.4.dylib @loader_path/libmpfr.4.dylib gfortran/lib/libmpc.3.dylib
install_name_tool
-change
/usr/local/lib/libgmp.10.dylib @loader_path/libgmp.10.dylib gfortran/lib/libmpc.3.dylib
install_name_tool
-change
/usr/local/lib/libgmp.10.dylib @loader_path/libgmp.10.dylib gfortran/lib/libmpfr.4.dylib
.gitlab/os-macos.yml
View file @
70789f4e
...
...
@@ -44,7 +44,8 @@
.before_script_macos
:
&before_script_macos
-
.gitlab/ci/cmake.sh
-
.gitlab/ci/ninja.sh
-
export PATH=$PWD/.gitlab:$PWD/.gitlab/cmake/bin:$PATH
-
.gitlab/ci/gfortran.sh
-
export PATH=$PWD/.gitlab:$PWD/.gitlab/cmake/bin:$PWD/.gitlab/gfortran/bin;$PATH
-
cmake --version
-
ninja --version
# Download Qt
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment