-
Notifications
You must be signed in to change notification settings - Fork 4
/
workflow.sh
executable file
·59 lines (39 loc) · 971 Bytes
/
workflow.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
48
49
50
51
52
53
54
55
56
57
58
59
P=$(pwd)
whereis python
sudo apt install build-essential libssl-dev libffi-dev python-dev --yes
sudo apt install python3-pip --yes
# Step 3: Use pip to install virtualenv
sudo pip3 install virtualenv
sudo apt install gcc wget python-virtualenv --yes
sudo apt install cmake --yes
wget https://nodejs.org/dist/v14.15.5/node-v14.15.5-linux-x64.tar.xz
tar xf node-v14.15.5-linux-x64.tar.xz
export PATH="$P/node-v14.15.5-linux-x64/bin:$PATH"
PATH="$P/node-v14.15.5-linux-x64/bin:$PATH"
npm install -g yarn
./build.sh
cd $P
mkdir -p $HOME/.local/lib && mkdir -p $HOME/.local/bin && mkdir -p $HOME/.local/include
export PATH="$HOME/.local/bin:$PATH"
PATH="$HOME/.local/bin:$PATH"
./pull_deps.sh
cd ./external/hashmap
make
make install
cd $P
cd ./external/libjson
make
make install
cd $P
cd ./external/scss
make
make install
cd $P
make install
cd $P
cd tests
ls -lart
#../pull_deps.sh
cp ./gpp.out $HOME/.local/bin/gpp
sudo cp ./gpp.out /usr/bin/gpp
./run.sh