Move build script to the compile.sh file
This commit is contained in:
parent
1dd986ed50
commit
c17ca75bb2
2 changed files with 27 additions and 23 deletions
25
Jenkinsfile
vendored
25
Jenkinsfile
vendored
|
@ -10,29 +10,8 @@ pipeline {
|
|||
steps {
|
||||
sh '''
|
||||
#!/bin/bash
|
||||
|
||||
pushd dart
|
||||
|
||||
mkdir out
|
||||
dart compile exe -o out/dbikc-linux-x64 bin/dbikc.dart
|
||||
dart compile exe -o out/mkfsreport-linux-x64 bin/mkfsreport.dart
|
||||
dart compile exe -o out/nbt2snbt-linux-x64 bin/nbt2snbt.dart
|
||||
dart compile exe -o out/snbt2nbt-linux-x64 bin/snbt2nbt.dart
|
||||
dart compile exe -o out/uuidgen-linux-x64 bin/uuidgen.dart
|
||||
dart compile exe -o out/pause-linux-x64 bin/pause.dart
|
||||
|
||||
popd
|
||||
|
||||
pushd cpp
|
||||
|
||||
mkdir build
|
||||
pushd build
|
||||
|
||||
cmake ..
|
||||
make
|
||||
|
||||
popd
|
||||
popd
|
||||
|
||||
./compile.sh
|
||||
'''
|
||||
}
|
||||
|
||||
|
|
25
compile.sh
Executable file
25
compile.sh
Executable file
|
@ -0,0 +1,25 @@
|
|||
|
||||
#!/bin/bash
|
||||
|
||||
pushd dart
|
||||
|
||||
mkdir out
|
||||
dart compile exe -o out/dbikc-linux-x64 bin/dbikc.dart
|
||||
dart compile exe -o out/mkfsreport-linux-x64 bin/mkfsreport.dart
|
||||
dart compile exe -o out/nbt2snbt-linux-x64 bin/nbt2snbt.dart
|
||||
dart compile exe -o out/snbt2nbt-linux-x64 bin/snbt2nbt.dart
|
||||
dart compile exe -o out/uuidgen-linux-x64 bin/uuidgen.dart
|
||||
dart compile exe -o out/pause-linux-x64 bin/pause.dart
|
||||
|
||||
popd
|
||||
|
||||
pushd cpp
|
||||
|
||||
mkdir build
|
||||
pushd build
|
||||
|
||||
cmake ..
|
||||
make
|
||||
|
||||
popd
|
||||
popd
|
Loading…
Reference in a new issue