-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathci.sh
executable file
·47 lines (44 loc) · 1.16 KB
/
ci.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/bash
if [ -d "panama-vector" ]; then
# Pull changes
(
cd panama-vector
git pull
)
else
# Shallow-clone vectorIntrinsics repo
git clone --depth=1 --single-branch --branch=master https://github.com/openjdk/panama-vector.git
# Configure rebase and autostash
(
cd panama-vector
git config --local pull.rebase true
git config --local rebase.autoStash true
)
fi
# Build it
(
cd panama-vector
bash configure
make images
)
# Configure JAVA_HOME and PATH
export JAVA_HOME=$(pwd)/panama-vector/build/linux-x86_64-server-release/images/jdk
export PATH=$(pwd)/panama-vector/build/linux-x86_64-server-release/images/jdk/bin:$PATH
# Download and extract binutils
if [ ! -d "binutils-2.32" ]; then
wget https://ftp.gnu.org/gnu/binutils/binutils-2.32.tar.gz
tar xf binutils-2.32.tar.gz
rm binutils-2.32.tar.gz
fi
BINUTILS=$(pwd)/binutils-2.32
(
cd panama-vector/src/utils/hsdis
# Build hsdis
if [ ! -f "build/linux-amd64/hsdis-amd64.so" ]; then
make BINUTILS=$BINUTILS ARCH=amd64
fi
# Copy to JDK
cp build/linux-amd64/hsdis-amd64.so ${JAVA_HOME}/lib/
)
# Build and run the benchmarks
./mvnw package && java -jar target/bench.jar