mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-22 13:06:27 +02:00
add julia 1.6.1 package (#285)
This commit is contained in:
parent
64e95f63e0
commit
929f3d3f2c
5 changed files with 35 additions and 0 deletions
packages/julia/1.6.1
21
packages/julia/1.6.1/build.sh
vendored
Executable file
21
packages/julia/1.6.1/build.sh
vendored
Executable file
|
@ -0,0 +1,21 @@
|
|||
#!/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.6.1/julia-1.6.1.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
|
4
packages/julia/1.6.1/environment
vendored
Normal file
4
packages/julia/1.6.1/environment
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Add Julia binary to path
|
||||
export PATH=$PWD/bin:$PATH
|
5
packages/julia/1.6.1/metadata.json
vendored
Normal file
5
packages/julia/1.6.1/metadata.json
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"language": "julia",
|
||||
"version": "1.6.1",
|
||||
"aliases": ["jl"]
|
||||
}
|
4
packages/julia/1.6.1/run
vendored
Executable file
4
packages/julia/1.6.1/run
vendored
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Run without startup or history file
|
||||
julia --startup-file=no --history-file=no "$@"
|
1
packages/julia/1.6.1/test.jl
vendored
Normal file
1
packages/julia/1.6.1/test.jl
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
println("OK")
|
Loading…
Add table
Add a link
Reference in a new issue