mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-22 21:16:29 +02:00
pkg(julia-1.5.4): switch to build from source (#254)
* pkg(julia-1.5.4): switch to build from source * fix install lang in ci test step * use x86-64 cpu target list
This commit is contained in:
parent
93188099b7
commit
3e9705bcd3
4 changed files with 22 additions and 6 deletions
21
packages/julia/1.5.4/build.sh
vendored
21
packages/julia/1.5.4/build.sh
vendored
|
@ -1,6 +1,21 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
curl -OL https://julialang-s3.julialang.org/bin/linux/x64/1.5/julia-1.5.4-linux-x86_64.tar.gz
|
||||
tar zxvf julia-1.5.4-linux-x86_64.tar.gz
|
||||
rm julia-1.5.4-linux-x86_64.tar.gz
|
||||
# Install location
|
||||
PREFIX=$(realpath $(dirname $0))
|
||||
|
||||
mkdir -p build
|
||||
cd build
|
||||
|
||||
# Download and extract Julia source
|
||||
curl -L "https://github.com/JuliaLang/julia/releases/download/v1.5.4/julia-1.5.4.tar.gz" -o julia.tar.gz
|
||||
tar xzf julia.tar.gz --strip-components=1
|
||||
|
||||
# Build
|
||||
echo "JULIA_CPU_TARGET=generic;sandybridge,-xsaveopt,clone_all;haswell,-rdrnd,base(1)
|
||||
prefix=$PREFIX" > Make.user
|
||||
make -j$(nproc)
|
||||
make install -j$(nproc)
|
||||
|
||||
# Cleanup
|
||||
cd ..
|
||||
rm -rf build
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue