mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-21 04:26:28 +02:00
* pkg(julia-1.5.4): switch to build from source * fix install lang in ci test step * use x86-64 cpu target list
21 lines
475 B
Bash
Executable file
21 lines
475 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
# 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
|