-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·32 lines (28 loc) · 1.88 KB
/
build.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
#!/bin/bash
cargo build --release --target x86_64-unknown-linux-gnu
cargo build --release --target x86_64-pc-windows-gnu
cp target/x86_64-unknown-linux-gnu/release/stackcell dist/x86_64-unknown-linux-gnu/stackcell
chmod +x dist/x86_64-unknown-linux-gnu/stackcell
cp target/x86_64-pc-windows-gnu/release/stackcell.exe dist/x86_64-pc-windows-gnu/stackcell.exe
cargo build --release --features u32 --target x86_64-unknown-linux-gnu
cargo build --release --features u32 --target x86_64-pc-windows-gnu
cp target/x86_64-unknown-linux-gnu/release/stackcell dist/x86_64-unknown-linux-gnu/stackcell-u32
chmod +x dist/x86_64-unknown-linux-gnu/stackcell-u32
cp target/x86_64-pc-windows-gnu/release/stackcell.exe dist/x86_64-pc-windows-gnu/stackcell-u32.exe
cargo build --release --bin assembler --target x86_64-unknown-linux-gnu
cargo build --release --bin assembler --target x86_64-pc-windows-gnu
cp target/x86_64-unknown-linux-gnu/release/assembler dist/x86_64-unknown-linux-gnu/assembler
chmod +x dist/x86_64-unknown-linux-gnu/assembler
cp target/x86_64-pc-windows-gnu/release/assembler.exe dist/x86_64-pc-windows-gnu/assembler.exe
# v2
cd new_vm || exit
cargo build --release --target x86_64-unknown-linux-gnu
cargo build --release --target x86_64-pc-windows-gnu
cp target/x86_64-unknown-linux-gnu/release/stackcell_v2 ../dist/x86_64-unknown-linux-gnu/stackcell2
chmod +x ../dist/x86_64-unknown-linux-gnu/stackcell2
cp target/x86_64-pc-windows-gnu/release/stackcell_v2.exe ../dist/x86_64-pc-windows-gnu/stackcell2.exe
cargo build --release --features u32 --target x86_64-unknown-linux-gnu
cargo build --release --features u32 --target x86_64-pc-windows-gnu
cp target/x86_64-unknown-linux-gnu/release/stackcell_v2 ../dist/x86_64-unknown-linux-gnu/stackcell2-u32
chmod +x ../dist/x86_64-unknown-linux-gnu/stackcell2-u32
cp target/x86_64-pc-windows-gnu/release/stackcell_v2.exe ../dist/x86_64-pc-windows-gnu/stackcell2-u32.exe